Thread: getx gety?
View Single Post
  #1  
Old 06-04-2007, 10:06 PM
Angel_Light Angel_Light is offline
Varia Developer
Angel_Light's Avatar
Join Date: Nov 2005
Location: Knoxville, TN
Posts: 1,684
Angel_Light is on a distinguished road
Send a message via AIM to Angel_Light Send a message via MSN to Angel_Light
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:
this.+= 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.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
__________________
Deep into the Darkness peering...
Reply With Quote