![]() |
Stupid newbie question
How do I move an NPC half a tile?
|
x+.5;
x-.5; |
Quote:
|
o
+moves it to the right
- moves to the left .5 is half of 1 get it????? |
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. |
if (created) {
x-=.5; x+=.5; y-=.5; y+=.5; } |
Quote:
|
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) |
Quote:
lol :) |
Quote:
Anyway, thanks all. |
if you just read throught the scripting document that comes with graal, it will get you started
|
Quote:
|
Quote:
|
Quote:
|
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.