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

Common usesEdit

Often in games, the player controls a sprite and moves it around - the Change X by () block (and the Change Y by () block) are very common here.

Behind the scenesEdit

The code is rather simple:

A workaround for the Change X by () block

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

Community content is available under CC-BY-SA unless otherwise noted.