Portable Game Console
PoGa-4DGL Reference Manual
Now also add these 2 lines after line15 so we can at least just display them and take a look.
Now hit the 'Comp'n'Load' button and test the code, you should see the 4 ghosts.
Now, as a final touch, we will make a ghost 'walk'. Add the following code, then download it.
The method used for the demo is not a particularly efficient way of doing this, but its done this way so it's
easy to understand what's going on.
Note:
Please refer to the other Sprite demo's and games for further ideas on sprite manipulation.
Note:
The code for this demo is also saved as SpriteGhostDemo.4DG.
© 2011 4D Systems
www.4dsystems.com.au
Page 71 of 87