ID:265431
 
I have code RPG style movement for one of my projects, and it came out better than I planned. It is the style of movement where you can't move diagnol, and when you press a direction you face that direction, and if you're already facing that direction you move that direction. Should I make it a Demo? Is it already one?
mob/Move(l,d)
if(d&(d-1))return 0
if(dir!=d)dir=d
else return ..()


Anyways, if you want to, go all ahead.