set y to ()

From PenguinMod Wiki (Official)
Set y to ()
Jump to navigation Jump to search

The set y to () block is a stack block in the Motion category that moves a sprite to the specified y position. It originates from Scratch. The default value is the current y position of the sprite that the block is in, like with the go to x: () y: () block.

Workaround

This block can be worked around by using the go to x: () y: () block, with the x position reporter block as the first input, and the wanted y position as the 2nd input:
go to x: (x position) y: (wanted y::grey)
It can also be worked around with the change y by () block: change y by ((wanted y::grey) - (y position))

See also