Moving a character back and forth

These steps show how to make a character simply move back and forth. Horizontally or vertically.

Setting up the movement

 * 1) Make a create event for the object that will be moving.
 * 2) In the create event, place the "Start moving in a direction" action and set it to a speed of 1. It does not matter which direction you choose.

Making the direction change

 * 1) In the Create event, add the "Set Alarm" action and set it at 'Alarm 0 to 10.'
 * 2) Make an "Alarm 0" event.
 * 3) In the Alarm 0 event, add the "Reverse horizontal direction" or the "Reverse vertical direction" action, depending on which way your object is moving.
 * 4) In the Alarm 0 event, add another "Set Alarm" action, and again set it at Alarm 0 to 10.