Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Stupid newbie question (https://forums.graalonline.com/forums/showthread.php?t=34040)

brock128 07-23-2002 02:52 AM

Stupid newbie question
 
How do I move an NPC half a tile?

screen_name 07-23-2002 03:15 AM

x+.5;
x-.5;

brock128 07-23-2002 05:00 AM

Quote:

Originally posted by screen_name
x+.5;
x-.5;

Remember, I'm a stupid newbie, so that would mean... what?

Legondary_MyTH 07-23-2002 05:51 AM

o
 
+moves it to the right
- moves to the left
.5 is half of 1 get it?????

AlexH 07-23-2002 05:55 AM

if (playerenters) {
x=x+.5;
y=y+.5;
}

Can use - too.
Basically it moves the image half a tile depending on what you put there.

user13-xo 07-23-2002 06:10 AM

if (created) {
x-=.5;
x+=.5;
y-=.5;
y+=.5;
}

Torankusu 07-23-2002 12:43 PM

Quote:

Originally posted by user13-xo
if (created) {
x-=.5;
x+=.5;
y-=.5;
y+=.5;
}

that's a great script if you want to put it right back in its original position!

MaverickZero 07-23-2002 12:49 PM

or (im making this up)
if (created) { x=30.5; y=29.5
}

that would move it to the x/y spefified
(i cant spel)

screen_name 07-23-2002 01:31 PM

Quote:

Originally posted by Torankusu
that's a great script if you want to put it right back in its original position!

lol :)

brock128 07-24-2002 01:16 AM

Quote:

Originally posted by Kaimetsu
¬_¬

I can't believe how low this forum has sunk.

Oh I'm sorry I'm not a l33t scripter like you please give me your master advice Mister Kaimetsu.

Anyway, thanks all.

screen_name 07-24-2002 01:35 AM

if you just read throught the scripting document that comes with graal, it will get you started

Python523 07-24-2002 01:55 AM

Quote:

Originally posted by Kaimetsu
¬_¬

I can't believe how low this forum has sunk.

:( sad but true

brock128 07-24-2002 02:33 AM

Quote:

Originally posted by screen_name
if you just read throught the scripting document that comes with graal, it will get you started
Thanks.

darkriders_p2p 07-24-2002 02:55 AM

Quote:

Originally posted by AlexH
if (playerenters) {
x=x+.5;
y=y+.5;
}

Can use - too.
Basically it moves the image half a tile depending on what you put there.

on a free server wouldn't that move the npc over .5 every time you entered the room?

screen_name 07-24-2002 03:15 AM

yes


All times are GMT +2. The time now is 09:23 AM.

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