home page icon Flash Bestiary / Oddments / Victorian Tamagotchi

Victorian Tamagotchi

This is a little experiment to create the effect of an endless series of objects flying towards the viewer.

The objects are tweened in time. All variables are based on a ratio r that goes from 0 to 1.

An easing equation is used on r, after it is computed, to slow it down at the beginning and ends.

r = r*r*(3-2*r);

The alpha is faded in and out using half of a sine wave

_alpha = Math.sin(r*Math.PI)) * 100;

And the scaling is accomplished using a 3d-scaling shortcut:

zScale = focalLength / (focalLength+z);


sourcecode iconDownload the flash project
book iconJim's Favorite Actionscript Books
wiki iconAsk Jim about Actionscript
Next: Ostrich Herd at Night

Having trouble opening the project? You may need to Upgrade to Flash MX 2004

Copyright © 2003,2004 by Jim Bumgardner. All Rights Reserved.        Leave Jim some feedback