define (custom block) — Scratch Block Guide
Header block where you build the reusable steps for your own custom command.
What this block does
Header block where you build the reusable steps for your own custom command.
Organize complex platformer physics, drawing routines, and reset scripts into clean named parts.
- Category: My Blocks
- Key tip: Enable "Run without screen refresh" only for instant loops—never put "wait" blocks inside a no-refresh definition!
Working Scratch example
Try building this small script in the Scratch editor, predict what will happen, then click the green flag to test it.
- Define Reset Player
- Go to x: -180 y: 0
- Set y_vel to 0
- Show
Try it: Creates a reusable "Reset Player" block you can call from anywhere in the sprite.
Related block guides
Explore other blocks in the same category or return to the full English Block Dictionary.
FAQ
When should I use "define (custom block)" in Scratch?
Organize complex platformer physics, drawing routines, and reset scripts into clean named parts. Enable "Run without screen refresh" only for instant loops—never put "wait" blocks inside a no-refresh definition!
This guide is provided for educational purposes. Scratch screens and terms may change over time, so please check the official Scratch website as well.