-
Hey guys,
I'm working on a scrolling menu system based on actionscript. I really want to add real movement to it, i.e. acceleration and deceleration. I've had a bash but to no avail.
I have both my start and finish values for the x axis of the menu. All i need to know now is the correct method to generate the realistic movement. Any hints would be much appreciated.
Matt
-
_
-
FK M.D.
accel can be done the same way. you just multiply instead of divide. and you have to throw in a check for when to stop accelerating (i.e.-
Code:
if(this._x >= 25)
stop();
else
gotoAndPlay(1);
where frame 1 has your accel script
just one of many ways...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|