Quote:
|
Originally Posted by Arnack
I was wondering how you do A sliding script (like a 'slide down' script)
for a slide (duh)
Thanks,
Arnack
|
Do you know how to use the 'for(blah;blah;blah)' command?
Create a setshape at the top of the slide that sets your direction to down and applies a sit gani. Then, use the 'for' command describing where you will start to slide and where you will stop.
Hint:
for (i=Y OF THE TOP OF THE SLIDE;i>Y OF THE BOTTOM OF THE SLIDE;i--)
This is telling you that:
i=Y OF THE TOP OF THE SLIDE - Say the top of the slide is at y 30.
i-- - the value of i will keep decreasing while
i>Y OF THE BOTTOM OF THE SLIDE is true.
So, playery = i;
The playery will go to whatever the value of i is (shown in the 'for' command) until it hits the bottom of the slide and stops.