Role playing game tutorial

Sprites
You will need plenty of sprites, if you are making multiple characters that you can control in a roll playing game. To show you the vast quantities; say, you decide to have 4 types of character. A dragon, a dwarf, a human, or a goblin. You will need 4 sprites with atleast 8 subimages for the rotation, 4 more with probably atleast 12 subimages for attacking and 4 with about 8 subimages for walking. That totals 112 subimages just for 4 types of character! This is why roll playing games take a while to make, but if care and pace is kept, a good game should come out of it.

Using the sprites
image_speed=(speed) //1 is the fastest, 0 is stationary image_index=(subimage) //You can choose which subimage to start playing the animation


 * Use that code to choose what speed and which subimage to play the animation.

The Steps
1. Start off by making 12 sprites. Make 3 sets of 4 same images.(e.g. 3 black stickman sprites, 3 red ones, 3 blue ones and 3 green ones)


 * note: at this stage detailed sprites are not required.

Make the first sprite of every colour of stickman the rotational animation, the second, the attack animation and the last the walking animation.(you won't be needing anymore than about 4 subimages at the moment).

2. Create 4 objects (as the 4 colours of stickmen) and set their sprites as the rotational types. Then for all of them create a 'Create' event and insert this code

{  image_speed=0 image_index=2 //assuming you have only 4 rotational subimages }

3. Set the movement buttons for the objects, i.e. left button, keyboards, etc.


 * ''note: I am designing an arrow key movement roll playing game, note a click-and-move type (Age of Empires, Runescape)

Make sure to set the move left button as:

{  sprite_index=(sprite) //the sprite you chose for walking image_speed=0 image_index=3 }

and the other movement buttons as the other directions.

4. Choose which button will be used for attacking and make an event for it in each object. Insert the code: (if object is facing left)

{  sprite_index=(sprite) //the sprite you used for attacking image_speed=0.4 image_index=3 }


 * note: remember to use the respective attack colours with the rotational colours.

5.Create 4 sprites that will be used for selecting the character type.

[To be continued]