ABSTRACT

Creating a platform-based game is quite a challenge, but by this stage in the book you should have acquired all the necessary skills. In this chapter we are going to look at the problems of controlling the behaviour of a sprite in a platform world. First we will look at an example in which we move the sprite whilst the background remains stationary and then we will look at using a multi-layered scrolling background. Platform games often use dynamically created sprites; we will look at creating sprites on the fly and removing them when they are no longer in use.