
05-06-2001, 03:42 AM
|
|
The one, The only -
|
 |
Join Date: Apr 2001
Location: USA, Minnesota
Posts: 1,012
|
|
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
|
|
|
|