world
view = 21
mob
icon = 'male.dmi'
mob
Login()
src.loc = locate(1,1,1)
sleep(10)
src.gravity()
atom/movable/Move()
if(dir == 1)
var/obj/block/block
for(block in locate(src.x,src.y-1,src.z))
jump()
return ..()
if(src.y<2)
jump()
return ..()
else
return ..()
mob
proc
gravity()
if(src.y>=2)
takedown()
sleep(10)
src.gravity()
mob
proc
takedown()
spawn(5) usr.y -= 1
atom
proc
jump()
spawn(1) usr.y++
spawn(3) usr.y++
spawn(5) usr.y++
spawn(7) usr.y++
turf
floor
blackness
icon = 'blackness.dmi'
atom
var
jumpover = 1
canjump = 0
activategrav = 1
obj
block
density = 1
icon = 'block.dmi'
notblock
density = 0
icon = 'block.dmi'
Problem description:
The gravity works, the user jumps and goes up a 4 blocks, *Trying to make a game based around this*
But when the users jumped, he cannot scroll to left or right.
he will jump and go down, any ideas?
By the way, when hes landed back onto Y 1, he can move again, and when hes landed on a few blocks i put in the air.
I'm not sure why you're sleeping in Login(), and I'm not too fond of calling "takedown()" unless you use it more than just in that one spot... but those are just minor details...