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.

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.