PDA

View Full Version : inertia/gravity/velocity???


vosgien
01-27-2002, 02:25 PM
What I am trying for here I think is something I probably already know - but for the life of me I can't figure it out.
I want a simple animation of a square/cube/circle (no fill) going from _xscale = 0;
_yscale = 0;
to _xscale = 100;
_yscale = 100;
a simple 3 frame animation, however I want to add to that some kind of inertia or velocity movement without the need for a mouse action from the user.
I have used Sham Bangals excellent behaviorJello clip to good effect, and I think I have grasped the where we are now + where we want to go concept. I have tried converting the button actions in this clip to onClipEvents but to no avail
I have looked at the discussions on these forums about inertia but I still can't get it !!
Any help please will be greatly appreciated

Vosgien

pixelwit
01-27-2002, 04:18 PM
Check out this file: http://www.pixelwit.com/temp/Bouncy.zip

Maybe it'll help.

-PiXELWiT
http://www.pixelwit.com

vosgien
01-27-2002, 04:49 PM
Hi Pixlewit
thanks for that, I will look at the code a bit later, must say I love the movement on that, however I am trying to achieve the same without the button action - so that it animates onto the screen and stops at 100%, that possible do you think?
i will try to dissect the code and get abck leter.

Thanks again
Vosgien

vosgien
01-27-2002, 05:12 PM
Hi Pixelwit,
Again, many thanks, the initial code was simpler than I thought, I have tranferred the onClipEvents to frame actions and the button events to onClipEvents and it works like a dream; Ta
Vosgien

pixelwit
01-27-2002, 05:21 PM
Hey, now yer thinkin.

-PiXELWiT
http://www.pixelwit.com