![]() |
getx gety?
Hello, I have a movement system going "Serverside" I'm using move() and all is fine. But of course it moves the NPC but not the actual x y coor of the NPC. IS there way so it moves the x y coor?
I found a work around using PHP Code:
PHP Code:
PHP Code:
-Much Thanks Mr. Ωmega |
*bump*
|
Well first of all, random is spelt wrong.
|
On Kingdoms we move monsters with move() but check for blocking tiles manually before calling move(). You can use the parameters to let move() stop at walls.
|
it's spelt fine in the script, Stefan, I do have the block checks in there but I have to have the this.x += temp.newx or else the baddy just keeps moving from the original positions, __-__ just figured the problem i had temp.x instead of temp.newx in the tiletype check haha, thanks guys :P
EDIT : grr... well it doesnt walk if the newx and newy are blocking but if the player walks in front and stops the baddy it still screws up. Here's a part of the script PHP Code:
|
*smack*
|
*bump*
|
| All times are GMT +2. The time now is 07:01 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.