Saturday, 15 August 2015

actionscript 3 - Restrict max speed in tweenmax -



actionscript 3 - Restrict max speed in tweenmax -

i'm developing game in flash , need move movie-clips in wrap-round way across screen. m using tweenmax.to() function provided greensock. function takes 'time' , 'distance' parameters , applies accleration , deaccleration motion itself.

however takes max-speed of motion beyond want. there way set max-speed motion well?

i not think can command acceleration manually, slow speed downwards can either set higher value of time: say, from

tweenmax.to(mc, 2, {x:65, y:117});

to

tweenmax.to(mc, 4, {x:65, y:117});

or utilize type of easing - every of them contains own set of acceleration. there lot of them, seek find appropriate one.

there interactive demo, seek playing different easing functions.

actionscript-3 greensock

No comments:

Post a Comment