Change Y by ()
Change Y by ()
Category Motion
Type Stack
The Change Y by () block is a Motion block and a Stack block. The block moves its sprite's Y position by the specified amount.

Common UsesEdit

Often in games, the player controls a sprite and moves it around, such as with velocity. In this way, the Change Y by () block (and the Change X by () block) can become very useful.

Behind the ScenesEdit

The code is rather simple:

A workaround for the Change Y by () block

The code sets the sprite's Y position to its Y position, plus the specified amount - exactly what the Change Y by () block does.