Thread: onwall
View Single Post
  #3  
Old 05-06-2001, 03:42 AM
KJS KJS is offline
The one, The only -
KJS's Avatar
Join Date: Apr 2001
Location: USA, Minnesota
Posts: 1,012
KJS is on a distinguished road
Send a message via AIM to KJS
ok...

if your making a moving npc you would do something like

if(!onwall(x-1,y)&&dir=1){
x--;
}

this basically says if there is no wall to the left of him and he is faced left then he can go left...

__________________
Thanks,
-KJL
Reply With Quote