The stationary dragon could have a sprite fire (easier), but since you have a dragon that can fly around we should try to make animation fires.
Animation Sheets
An animation is a series of images played in order one after another over a very sort period of time (frames). That gives the illusion of a moving image.
Each image lasts only one frame and then the next shows. The end result is like this:
Unlike sprites, the animation images have a fixed size. 192x192 pixels (6 tiles tall and wide). The animation sheet MUST have 5 columns (and as many row as you want from 1 to 5 at least, depending on how many images you want).
When creating an animation sheet you must be careful so the images are positioned correctly.
Here (in Gimp) you can see that I created an animation sheet with a very crude low quality fire (just as an example) I created a grid that separates the image to 5 columns that are 192 pixels wide. That makes it easier for positioning. But as you can see the positioning is all wrong. They ARE within the boxn but they are not aligned.
Here you can see how this is faulty.
It jumps around randomly.
What we need is the base of the fire (the source that is near the mouth) to be in all the images in the same place.
Here you see that the fires are aligned. if you measure the pixel distance between the source of two fires it is always 192 pixels.
The result:
Stays perfectly still. Positioning plays a great role in sprites as well.
Remember you don't have to have only 5 images for the animation. You can create multiple rows (as long as they all are 192 pixels tall) for more images. The more images, the smoother the animation.
Animation
Once you create the animation sheet, save it in the Graphics/Animation folder of your project.
You can manipulate your animations from the Database -> Animation tab.
Make a new Animation Slot and load the Animation Sheet.
The frames of your animation depend on the number of images you want to use in the animation and the number of repetition of any images. (for example the number of images of the flame firing from the dragons mouth and the number of frames of the fully developed flame "burning" that can be done by playing 2-3 images in repetition).
Click each frame and place the image you want where you want.
You can also manipulate each (or multiple frames with Cell Batch)
- You can change the position of the images (something you will need so you can position the source of the flame near the mouth of the dragon)
- Zoom (important to bypass the 192X192 pixel size)
- Rotate
- Change Opacity
- Flip the Animation
- Change Blending (On default all images are in Add that makes them semi transparent but you can place it on Normal)
That's the basics of it. The Se and Flash timing obviously inserts SE and Flash in the animation at the time of your choosing. You can also play with the position option next to Max frames option.
If you need something clarified, or anything additional, tell me.