![]() |
|
API >> Tutorials >> Playfield Scrolling And Pre-Collision mode >> "Follow the ball" exercise
"Follow the ball" exerciseThis course is a little bit special; it will explain nothing, because you know everything about elements which compose it. But it invites you to have a little reflection.Your missionThe goal of this exercise is to transform the previous example by adding a wrapper to only one ball. This new wrapper will change the offset of the visible part of the playfield to follow this ball. Next, you have to add the ability to change the followed ball.The result has to look like this:
You only need a new graphic element to represent the followed ball:
Help me!!Did you succeed in your mission?We give you a possible solution for this execise:
Now it is in your hands, have fun.
API >> Tutorials >> Playfield Scrolling And Pre-Collision mode >> "Follow the ball" exercise
|