NEW Explore the Scratch Block Dictionary, tutorials, textbook, and classroom guides

Start learning →

go to (random position / mouse-pointer) — Scratch Block Guide

📌 What you will learn

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.

Example using go to (random position / mouse-pointer)
  1. When green flag clicked
  2. Forever
  3. 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.

Back to Motion Blocks See the overview and patterns for Motion Blocks. Learn more → Scratch Block Dictionary (All Categories) Browse Motion, Looks, Sound, Events, Control, Sensing, Operators, Variables, and Extensions. Learn more →

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.