This is a Simulation/tutorial so look inside for the tutorial which are comments. use the side arrow keys to move and up arrow to jump look at the behavior of the gravity variable if you are interested in the tutorial. Or however it is called.
I was looking around on youtube and scratch and there were easy but not effective gravity tutorials and the ones that were effective I thought were to complicated and so unuseful while making big projects because that could cause lagging to see if there were any non-complicated tutorials on how to make gravity and mario kindish jumping on scratch and so I found non so i thought lets make one all this script I invented so i didn't copy from anyone and it works and it is very simple. I hope you like it and leave any suggestions or requests on commentaries.