# How to Defeat Enemies by Jumping on Top of Them in Scratch > Check whether y-velocity is negative (falling) at the moment of contact. Learn how to defeat enemies by jumping on top of them in Scratch with clean block recipes, testing tips, and related guides. ## Minimal Working Block Recipe Check whether y-velocity is negative (falling) at the moment of contact. Test this minimal version first, then tune numbers like speed, gravity, or timing to match your game feel. **Defeat Enemies by Jumping on Top of Them script** - if then if <(y vel) < (0)> then bounce & defeat enemy else take damage Try it: Classic platformer stomp vs. side-hit rule. ## Debugging Checklist & Next Steps If it behaves unexpectedly, verify initial variable resets on the green flag and check that continuous checks sit inside a forever loop. - [Related Deep-Dive Guide](/en/techniques/hit-detection/): Explore full mechanics and variations. - [All 120 Scratch How-To Recipes](/en/howto/): Return to the reverse lookup index. Updated: 2026-11-23 Author: [Takamasa Suzuki](https://scratch.gmnavi.jp/about/author/) Japanese Edition: https://scratch.gmnavi.jp/howto/stomp-enemy/ [Scratch Daizen (English)](https://scratch.gmnavi.jp/en/)