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:
this.x += temp.newx;
which the movement can go -5 to 5 in all 4 dir I have thise set to temp.rx
PHP Code:
temp.rx = int(randome(-5,5));
so to get temp.newx I use
PHP Code:
temp.newx = this.x + temp.rx;
but if something blocks the way the NPC stays but when I add the this.x and all it moves the NPC to the location that is block. Any Idea's on how to fix. Can I detect the current x y when the move() is blocked?
-Much Thanks
Mr. Ωmega