Gravity & Ground Collision
📌 What you will learn
Master Gravity & Ground Collision in Scratch so your games feel responsive, fair, and easy to maintain.
How the mechanism works
Apply constant downward acceleration every frame and push the sprite cleanly out of the floor using a "Run without screen refresh" block.
- Prototype this technique in a blank project first so bugs are easy to spot.
- Display helper variables (like speed or state) on stage while tuning.
- Tune one number at a time until the game feel matches your vision.
Implementation checklist
Cap falling speed (e.g., if y_vel < -15 then set y_vel to -15) so the player never tunnels through thin floors.
Related guides
Master Gravity & Ground Collision in Scratch so your games feel responsive, fair, and easy to maintain.
This guide is provided for educational purposes. Scratch screens and terms may change over time, so please check the official Scratch website as well.