The While Moving behavior will "watch" a selected object and repeatedly triggers an event while the selected object is moving in any direction.
This is the object that will trigger the event when it moves. By default the current object is selected, but you can tap the graphic and choose any other object in your scene.
|Check X Axis||
If the toggle is off, then the event will not be triggered if the object moves horizontally. By default the switch is on.
|Check Y Axis||
If the toggle is off, then the event will not be triggered if the object moves vertically. By default the switch is on.
This outputs the Object ID.
If you want to change the color of your object as soon as it has started moving towards the left or right edge of the screen. Simply add the Started moving behavior, and make sure only the Check X axis toggle is on. Then connect a change color behavior.