Portable Game Console
PoGa-4DGL Reference Manual
Note that you can select either palette, and any of the images to view them. Note also the reason for 2
ghosts shown slightly differently is so we can make him look like he is walking when we do the animation
code. When you are happy, save the file – and close the Sprite Editor.
Now we are going to write some code to animate our ghost. Go back to the Workshop and open the old
example 'Sprite_Demo0.4dg' . We are going to use this as a bit of a template as its easier than starting from
scratch, so save it as 'Sprite_Ghost'. The Workshop should now look a bit like this.
Change the prefix names for the gfx_SpriteSet arguments from demo_xxx to demoanimation_xxx.
Its a good time to mention that the sprite bitmap file is best having a short descriptive name -
demoanimation was not a particularly good name in hindsight!
© 2011 4D Systems
www.4dsystems.com.au
Page 70 of 87
First thing to do, change the name
here to 'demoAnimation.inc'
Change the demo_ prefix's to demoanimation_