go to (random position / mouse-pointer) — Scratch Block Guide
Instantly teleports the sprite to a random stage location, the mouse pointer, or another sprite.
What this block does
Instantly teleports the sprite to a random stage location, the mouse pointer, or another sprite.
Use for spawning collectible coins, cursor followers, or attaching hitboxes and shields to a player.
- Category: Motion Blocks
- Key tip: To follow with a slight delay instead of snapping instantly, use glide or change x/y toward the target.
Working Scratch example
Try building this small script in the Scratch editor, predict what will happen, then click the green flag to test it.
- When green flag clicked
- Forever
- Go to mouse-pointer
Try it: The sprite follows the mouse cursor immediately across the stage.
Related block guides
Explore other blocks in the same category or return to the full English Block Dictionary.
FAQ
When should I use "go to (random position / mouse-pointer)" in Scratch?
Use for spawning collectible coins, cursor followers, or attaching hitboxes and shields to a player. To follow with a slight delay instead of snapping instantly, use glide or change x/y toward the target.
This guide is provided for educational purposes. Scratch screens and terms may change over time, so please check the official Scratch website as well.