actionscript 3 - Making an animation follow a path in a appointed time -
i make image go through path. far have found tutorials teach how this. wish same image go through path in given time such 2 minutes.
my intention make path image goes point b in 2 minutes , b c in 3 minutes.
someone have indication / me?
thanks in advanced,
check out greensock tweenmax.https://greensock.com/tweenmax-as
the thing you're looking called bezier (scroll down plugin explorer)
after importing library can animate display object that:
import com.greensock.*; import com.greensock.easing.*; tweenmax.to(mc, 2*60, {bezier:{autorotate:true, values:[{x:201, y:314}, {x:190, y:234}, {x:313, y:317}]}, ease:bounce.easeout});
Comments
Post a Comment