move one sprite up down
hello:
how can move 1 sprite , down? when sprite reachs top=75 move forward , when reach bottom =395 move back.
thank much
do want user interact sprite in order move? if not, can tween sprite moves , down way want it. place sprite @ initial position on stage. in score window, stretch out on number of frames want move down. select last frame of sprite in score window , return stage can place sprite @ lowest position.
run movie on these frames: can select these frames in score , in control panel, toggle on selected frames button @ far right. happy movement? if not, can adjust number of frames sprite , choose modify > sprite > tweening adjust easing , other properties.
when downward movement, can copy sprite , paste in following frames, choose modify > reverse sequence, make sprite move upwards. may want reverse tweening properties.
finally, can copy 2 sprites , paste them empty cast member slot, create film loop. if place film loop on stage, same animation, in single sprite can spread on number of frames.
try in message window see demo of these ideas:
go movie "http://nonlinear.openspark.com/tips/filmloop/tweening.dir"
More discussions in Director Lingo
adobe
Comments
Post a Comment