This is an experiment to see if I could make bounce physics in scratch. this project contains a square, that will bounce if it collides with the walls or floor. The elasticity can be changed with the keys 1-5. elasticity of 1 means that the square wont lose any kinetic energy when colliding with a wall. Elasticity of .75 - .1 means that it will lose kinetic energy when colliding with a wall, and that amount is dictated by how small the number is. .75 means it will have 75% of its initial kinetic energy, .1 means it will have 10% of its initial kinetic energy Pressing the arrow keys will input a directional velocity boost, depending on the direction you press press space to reset the squares position
I encourage you to go into the settings and experiment. especially with the pen script, which can show some interesting data I made this all on my own, if you want to use it in any games credit me please