Simple Movement

Download Example

In this tutorial you will learn how to make a moveable character. The character will be able to move in 4 Directions, Up, Down, Left and Right.

Load in a Sprite for your Character

  • Click the Load Sprite button to create a New Sprite.
  • Name the New Sprite.
  • Click the Load Sprite Button.
  • Browse for a Sprite and click Open.

Create a New Object for your Character

  • On the Character Object, Click Add Event
  • Name the New Object
  • Click the Load Sprite Button.

Add the Keyboard Direction Events

You will need to use Keyboard Events to make your character move. A Keyboard Event is when the user is Holding Down a certain Key on the Keyboard. There are over Keyboard events such as Key Press and Key Release but these are not used for Movement.

  • Click Add Event
  • Name the New Object
  • Select Keyboard > Left

Add in a ‘Move in Direction’ Action to the Keyboard Events

  • This is found in the ‘Move’ Tab.
  • Drag in the ‘Move in Direction’ Action
  • Set ‘Applies to’ as Self
  • Click what Direction you want the Object to Move in.
  • In the Text Box, type in what Speed to Move in.

Repeat this process for the other Directions (Up, Down, Left)

  • Click Add Event, Select Keyboard > Right, Add 'Move in Direction', set Direction as Right.
  • Click Add Event, Select Keyboard > Up , Add 'Move in Direction', set Direction as Up.
  • Click Add Event, Select Keyboard > Down, Add 'Move in Direction', set Direction as Down.

Add a Keyboard ‘No Key’ Event

This Event happens when no Keys are being pressed on the Keybaord.

  • Click Add Event
  • Select Keyboard > No Key

Add in a ‘Move in Direction’ Action to the No Key Event

  • Drag in the ‘Move in Direction’ Action
  • Click the Square in the middle of the Direction Buttons, this is No Direction

Choosing no Direction will make your character stop moving. Because there is no Direction, you won't need to put in a Speed.

  • Click the OK Button to finish editing the Object.

The Character object now has all the Actions and Events it needs to Move, the next thing to do is to make a room so you can test this.

Create a New Room

  • Click the New Room Button
  • Click the Objects Tab
  • From the Drop Down Box, Choose the Character you just created.
  • Click anywhere on the Grid to add your Character to the Room.
  • Click the Tick at the Top Left of the Room Window to finish editing your room.

END