|Set Y to ()|
The Set Y to () block is a Motion block and a Stack block. The block changes its sprite's Y position by the specified amount. This block, combined with the Set X to () block, have the same effect as the Go to X: () Y: () block.
If a sprite must go to a certain place, and the sprite's X position never changes, the Set Y to () block can be used instead of the Go to X: () Y: () block - there is no need to set the X position when it never changes.
Another common use of the block is Y scrolling - the sprites have to constantly change their Y. The Set Y to () block is normally used here.
Other common uses are:
- Placing platforms to climb up a wall
- Setting random heights for airplanes
- Resetting the Y position of a slider