# set x to (0) — Scratch Block Guide > Moves the sprite horizontally to a specific x coordinate while keeping its current y coordinate. How to use the "set x to (0)" block in Scratch 3.0 (Motion Blocks): clear explanation, working block example, and debugging tips. ## What this block does Moves the sprite horizontally to a specific x coordinate while keeping its current y coordinate. Perfect for Breakout/Pong paddles that track the mouse horizontally along a fixed height. - Category: Motion Blocks - Key tip: Use "set x" for snapping to a lane; use "change x" for relative stepping. ## 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 set x to (0)** - When green flag clicked - Set y to (-140) - Forever - Set x to (mouse x) Try it: The paddle follows the mouse left and right along the bottom of the screen. ## Related block guides Explore other blocks in the same category or return to the full English Block Dictionary. - [Back to Motion Blocks](/en/dictionary/motion/): See the overview and patterns for Motion Blocks. - [Scratch Block Dictionary (All Categories)](/en/dictionary/): Browse Motion, Looks, Sound, Events, Control, Sensing, Operators, Variables, and Extensions. Updated: 2026-11-24 Author: [Takamasa Suzuki](https://scratch.gmnavi.jp/about/author/) Japanese Edition: https://scratch.gmnavi.jp/dictionary/motion/set-x/ [Scratch Daizen (English)](https://scratch.gmnavi.jp/en/)