How to code gravity just click see inside.
Thanks to https://scratch.mit.edu/projects/1161165964/ for the code.