-
Senior Member
help with accell/decell.
hi,
i have a movie clip, that i want to move from point A to point B. with acceleration and deceleration
the basic script was movieclip._y = movieclip._y+1 in a loop, but this just moves the clip normally.
now i want to accelerate the clip until it reaches position 130 and then decelerate until it reaches 260...
any suggestions ?
thanks
-
if (movieclip._y<=130){
movieclip._y+=nMove++;
} else if (movieclip._y>130 && movieclip._y<260){
movieclip._y+=nMove--;
} else {
movieclip._y=260;
}
there are better ways of doing it, but that should work.
jeremy
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
|