ID:175861
 
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!
please help
In response to Koolguy900095
You want . = ..(), not step().
No put usr in proc. Ungh.

Lummox JR
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.