Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » How to make smooth jumps?
- Dfrsea
-
Scratcher
8 posts
How to make smooth jumps?
How is this necroposting?However, here is a script with smooth gravity:Dont necropost.when green flag clicked
forever
if <key [up arrow/space] pressed?> then
set [ gravity] to [0]
repeat until <[gravity] = [whatever jump height you want, I used ten]>
change y by (Gravity)
change [gravity] by (whatever, you want. I used 1, which worked pretty well and was smooth)
end
repeat until <[gravity] = [0]>
change y by (Gravity)
change [gravity] by (the opposite of the first change gravity by, for me it would be -1)
end
end
end
- lucleon622525
-
Scratcher
10 posts
How to make smooth jumps?
when [ space] key pressed
change y by 10
wait (0.5) secs
change y by (-10)
- Discussion Forums
- » Help with Scripts
-
» How to make smooth jumps?


