FANDOM


Set Y to ()
Set Y to ()
Category Motion
Type Stack

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.

Common UsesEdit

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


Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.