See inside and read the comments to see how I created a program to replicate gravity with forward movement and then plot it. If y velocity is negative, the line will be red. If y velocity is positive, the line will be green. And the list records the y velocity at moments of contact and then when the equation is run to represent an elastic or “bouncy” collision.
See our video "Advanced Topics: Gravity in Scratch | Tutorial" on the official ScratchTeam YouTube channel for more information on creating gravity.