Thread: Sliding Script?
View Single Post
  #2  
Old 08-02-2005, 05:41 PM
Bl0nkt Bl0nkt is offline
Era Developer
Bl0nkt's Avatar
Join Date: Mar 2005
Location: Pennsylvania
Posts: 1,589
Bl0nkt will become famous soon enough
Send a message via AIM to Bl0nkt
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.
Reply With Quote