ID:272215
 
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
It won't work because you're for some reason overriding Bump in the middle of the definition of the gravity() proc. There's no need to tell BYOND that if an object is dense not to move to it, it does that for you.

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.