MineTurte MineTurte loading

Unknown05212 wrote:

Hii! I am a new scratcher(not that new, but still). I've been trying to use gravity and jumps in my projects recently. Anyone know how to make my sprite stop falling after landing on an object and also stop pausing midair?
when green flag clicked
forever
if <touching [ floor] ?> then
if <not <key [ space] pressed?>> then
set [ velocity] to [0]
else
repeat (10)
change [ velocity] by (1)
end
end
else
change [ velocity] by (-1)
end
end

when green flag clicked
forever
change y by (velocity)
end

Hope this helps!

Note: It might be a little buggy but it should work good enough. Feel free to refine the jumping part of it as that is the buggiest.