Eng:Set X to () (block)

The Set X to  block is a Motion block and a Stack block. The block changes the selected sprite's X position to a specified value. Along with the Set Y to block, this block acts similarly to the Go to X:  Y:  block.

Example Uses
If a sprite's Y coordinate must be held constant, but the sprite still needs to move (for example, a horizontal scrollbar), the Set X to block may be used instead of the Go to X:  Y:  block  there is no need to set the Y position when it does not change.

This block is often used in projects that employ X scrolling specified sprites constantly change their X positions to follow the motion of the landscape.

Other uses include: when gf clicked set x to (pick random (-240) to (240)) when I receive [reset slider value v] set x to (0) when gf clicked forever set x to (mouse x)
 * Setting the location of sprites randomly on the screen
 * Setting random locations for sprites so as to fill the screen (for example, a snowflake project)
 * Resetting the X-coordinate of a slider
 * Moving a paddle in a Pong game

Workaround
This block can be replaced by one of the following: change x by ((wanted x) - (x position)) go to x: (wanted x) y: (y position)