Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Sliding Script? (https://forums.graalonline.com/forums/showthread.php?t=60312)

Arnack 08-02-2005 02:32 AM

Sliding Script?
 
I was wondering how you do A sliding script (like a 'slide down' script)
for a slide (duh)
Thanks,
Arnack

Bl0nkt 08-02-2005 05:41 PM

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.

Arnack 08-02-2005 05:52 PM

Oh, ok!
Thanks

Velox Cruentus 08-02-2005 09:33 PM

Or use the move command...

Bl0nkt 08-02-2005 09:48 PM

Quote:

Originally Posted by Velox Cruentus
Or use the move command...

That's a new one. Explain. :redface:

Lance 08-02-2005 09:56 PM

Quote:

Originally Posted by Velox Cruentus
Or use the move command...

Or read the thread.

You know, whichever.

Bl0nkt 08-02-2005 10:29 PM

Quote:

Originally Posted by Arnack
Oh, ok!
Thanks

If you don't understand just tell me. I'll explain it the best I could.


All times are GMT +2. The time now is 03:53 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.