Im trying to make it so you pres left and righ to turn and up and down to go forward and back. All i can do with this coding is turn:
mob
Move(var/m, var/n) if(src.density)
if(n == NORTH)
step(usr,usr.dir)
else if(n == EAST)
usr.dir = turn(usr.dir, -45)
else if(n == WEST)
usr.dir = turn(usr.dir, 45)
else if(n == SOUTH)
step(usr, turn(usr.dir, 180))
usr.dir = turn(usr.dir, 180)
Why cant i go forward and back? THanks!
ID:175861
Mar 2 2003, 6:09 pm
|
|
Mar 3 2003, 12:06 pm
|
|
please help
|
In response to Koolguy900095
|
|
You want . = ..(), not step().
|
In response to Lummox JR
|
|
*Shambles up to Lummox JR and bashed him on the head with a club*
Heh, didn't notice he was using usr. |