mob
proc
gravity()
Bump(atom/A) //yes, I know it wont work, mock-up anyone?
if(A.density) //<-- errored line.
return //you cant go, then.
else if(src.jumping) //are you jumping?
src.x+=src.jump //you go up... or whatever.
if(A.density) //repeats the loop
return
else if(src.jumping==0) //if your jumping var is 0
if(A.density)
return
else
src.x-=src.jump
mob/var
jumping=0
jump=3
basically, you go up/down your jump var, and if your jumping, you have to wait till your done with the current. how should i go about doing this? lol
For your gravity proc, just use the Move() proc to move the mob up a certain amount, use sleep() proc to keep the little guy in the air, then move him back down.