Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Bounce up and down
- chase-danger
-
63 posts
Bounce up and down
Hello!
I am making a platformer and I want the player to constantly be bouncing up and down like a bouncy ball. I want the code to be as simple as possible but have somewhat realistic physics and should be able to move around for a platformer. I will give credit to whoever provides me the code.
Am I asking too much? If so just tell me.
Thanks!
I am making a platformer and I want the player to constantly be bouncing up and down like a bouncy ball. I want the code to be as simple as possible but have somewhat realistic physics and should be able to move around for a platformer. I will give credit to whoever provides me the code.
Am I asking too much? If so just tell me.
Thanks!
- asterlily
-
47 posts
Bounce up and down
when green flag clicked
forever
repeat (3)
change y by (10)
wait (0.06) secs
end
repeat (3)
change y by (-10)
wait (0.03) secs
end
end
you can change the seconds to whatever you like, but I liked this best
Last edited by asterlily (March 26, 2019 04:01:25)
- Discussion Forums
- » Help with Scripts
-
» Bounce up and down