Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   X/Y Moving (https://forums.graalonline.com/forums/showthread.php?t=18785)

SabreKnot 12-12-2001 01:26 PM

X/Y Moving
 
Is there anyway I could make something so that if the player touchs the npc, they will move left or right slowly until they reach the X coordinate and then move up/down until they reach the Y coordinate?

I want it to be able to be done anywhere on screen and still end up in the same place. Its for a chapel level, it is long, so I want to make it so when a person sits down, an npc of them is put in their place and they are made invisible... they slowly move to the X and then to the Y so that they can be sitting in the ver back, yet can see the main part of the level. Also, when they say "back" it needs to put them back in the place and get rid of the npc.

I dunno if it can be done, im more of an LAT than an NAT so I need help lots lol.

btedji 12-12-2001 10:08 PM

To make the player move slowly your gonna need increment x by less than one like say, .5, and to make the player totally invisible you could use just remove 1024 from the showstats, if you dont know how to do that I sure either I will explain or someone else will.

SabreKnot 12-13-2001 07:57 AM

But is there a way that if you use the npc from ANYWHERE it will move you to the location without having to constanltly put
x+=.5;sleep .2;etc etc until they reach it?

btedji 12-13-2001 08:20 PM

use a for loop that stops when you get to the right x or y


All times are GMT +2. The time now is 05:29 AM.

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