ID:161696
 
yes i need a jump code so when you click it then it sends your person upward and over a few spaces in the direction they were facing (besides up or down only side to side) the game i need it for is super smash brothers melee(alpha stages havent even finished 1 map due to autohost/attack/jump code problems i have yet to start attack im working on getting the autohost code and jump im asking for atm, also if you think you might be interested in helping me code in some attacks page me at SadoSoldier thanks
    North()
if(src.mob.dir == EAST)
if(src.mob.inair == 0)
src.mob.inair = 1
for(var/i=1,i<4,i++)
src.Move(locate(src.mob.x,src.mob.y+1,src.mob.z),NORTH)
src.mob.dir = EAST
sleep(2)
Gravity(src.mob)
return
else
return
if(src.mob.dir == WEST)
if(src.mob.inair == 0)
src.mob.inair = 1
for(var/i=1,i<4,i++)
src.Move(locate(src.mob.x,src.mob.y+1,src.mob.z),NORTH)
src.mob.dir = WEST
sleep(2)
Gravity(src.mob)
return
else
return


Would this help any? I know it isnt exactly what your after but might be good enough to fiddle with
In response to Lostmilkman
lol so i help u u help me? funny
In response to Lostmilkman
The if() statements are pointless, you're misusing the second argument to Move(), and all those return statements are pointless. Let me cut that down:

    North()
if(src.mob.inair == 0)
src.mob.inair = 1
for(var/i=1,i<4,i++)
src.Move(get_step(mob, NORTH),src.mob.dir)
sleep(2)
src.mob.Gravity()
In response to SadoSoldier
im back online
In response to SadoSoldier
okay i dunno if this will help because my code is competly wrong but edit it and see if you can get it to work plz =\

mob
verb
Jump()
set category = "Battle"
for(var/turf/M as turf in T)
if(dir == "EAST")
usr.loc = locate(x+4,y+2,z)
sleep(5)
usr.loc = locate(x-4,y+2,z)
if(T.density == 1)
return
if(dir == "NORTH")
return
if(dir == "SOUTH")
return
if(dir == "WEST")
usr.loc = locate(x+4,y-2,z)
sleep(5)
usr.loc = locate(x-4,y-2,z)
if(T.density == 1)
return