Here is my code for jumping. There are no errors or anything but it's not working the way I want it to
usr.Lock(usr)
flick("Jumping",usr)
if(usr.dir == NORTH)
step(usr,NORTH)
else
if(usr.dir == SOUTH)
step(usr,SOUTH)
else
if(usr.dir == EAST)
step(usr,EAST)
else
if(usr.dir == WEST)
step(usr,WEST)
else
return
usr<< "You Jumped!"
usr.Unlock(usr)
What happens is that first he moves the diraction he is facing THEN he does the jumping. What I want him to do is to Jump and while jumping go that direction.
Thank you for your help!
Copyright © 2025 BYOND Software.
All rights reserved.
...
This if/else setup is a very very very bad way to move in each direction. Why not just do this instead?
That is of course assuming usr is right to use here. If this is a proc, not a verb, you should be using src.
Lummox JR