Enter(mob/player/m)
if(m.dir == SOUTH)
m.pixel_y = -5
sleep(1)
m.pixel_y = -10
sleep(1)
m.pixel_y = -15
sleep(1)
m.loc=locate(src.x,src.y-1,src.z)
m.pixel_y=0
Problem description:
Is there a better way to make jump effect?
Code:
Enter(mob/player/m) Problem description: Is there a better way to make jump effect? |
It seems something is wrong with it
m: compile failed (possible infinite cross-reference loop) m.jumping: compile failed (possible infinite cross-reference loop) turf |
The real question is what you want a jump to actually do.
A real fast example would be to set up a special density flag for objects that can be jumped over.
That should allow you to jump over anything that isn't specifically meant to block a jump action. Now jumping is as simple as: