set x to ()
Set x to ()
The set x to () block is a stack block in the Motion category that sets the x coordinate to the specified value. It originates from Scratch. The default value for this block is the current x position of the sprite, just like the default for the go to x: () y: () block.
Workaround
This block can be worked around by using a go to x: () y: () block with the wanted x as the first input, and the y position
reporter block as the value for the second input:
go to x: (x wanted::grey) y: (y position)
It can also be worked around using the change x by () block:
change x by ((x wanted::grey) - (x position))