|
|
|
||||
|
Simple Movement
1. Load in a Sprite for your Character 2. Create a New Object for your Character 3. Add the Keyboard Direction Events 4. Add a 'Move in Direction' Action to the Keyboard Events 5. Repeat the last step for the other Directions 6. Add a Keyboard 'No Key' Event 7. Add a 'Move in Direction' Action to the No Key Event 8. Create a New Room 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 Create a New Object Name the New Object Give the New Object a Sprite 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. On the Character Object, Click Add Event Select Keyboard, Left Add a 'Move in Direction' Action to the Keyboard Events From the 'Move' Tab, add the 'Move in Direction' Action Set 'Applies to' as 'Self' Select the Direction you want to move the character in Set the Speed as 4 Repeat the last step for the other Directions Make sure Up, Down, Left and Right Keyboard Events the 'Move in Direction' Action Add a Keyboard 'No Key' Event This Event is called when no Keys are being pressed on the Keybaord. On the Character Object, Click Add Event Select Keyboard, No Key Add a 'Move in Direction' Action to the No Key Event Choosing no Direction will make your character stop moving.
Because there is no Direction, you won't need to put in a Speed. From the 'Move' Tab, add the 'Move in Direction' Action Click the Square in the middle of the Directional Buttons, this is No Direction 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 |
|||||