ID:263022
 
Code:
mob
Move()
var/a = get_step(src,src.dir)
for(var/turf/M in a)
if(M.h2 <= src.h)
src.h = M.h2
return
else
return 0

client
command_text = ".alt "
mob
verb
jump()
set hidden = 1
if(usr.jumping)
return 0
var/I = usr.hjump
usr.jumping = 1
while(I)
sleep(5)
Move(usr,usr.dir)
usr.h += 1
I -= 1
stopjump()
proc
stopjump()
var/I = src.hjump
var/B = src.hspeed
var/C = 1
while(I)
sleep(B)
var/turf/M = locate() in src.loc
if(M.h2 == src.h)
I = 0
usr.jumping = 0
return 0
else
if(C)
Move(src,src.dir)
C = 0
src.h -= 1
I -= 1
B -= 5


Problem description:
Im making a game with all direction jumping(like mario and luigi super star saga or super mario rpg or that one 3d sonic game i found on the internet that some people made)
and when try to jump(the marco for it is W) nothing happens and the same for when i try to move. Please help me fix this.
note about varibles
h and h2 =height
hjump = how high you jump
hspeed = how long your in the air
jumping = if your in the air

Uhh it may be because you're not lettin the move proc continue.. just try this and see what happens:

mob
Move()
var/a = get_step(src,src.dir)
for(var/turf/M in a)
if(M.h2 <= src.h)
src.h = M.h2
..()
return
else
return 0
In response to VcentG
Fixed.