Hardware Reference
In-Depth Information
Making the paddles
After creating a new project, you will be presented with the white stage and a Scratchy
sprite.
1. Right-click on Scratchy and click on delete . Now, click on Paint new sprite .
2. Draw a long black rectangle and click on OK . Name this sprite Left .
We are going to create three simple scripts for this paddle, as follows:
3. The first script ensures that the left paddle points in the proper direction and then
sets its size to 60 percent. You should experiment with the size to determine what
feels right for your game.
4. The next two scripts control the vertical movement of the left paddle. Again, ex-
periment with the amount of movement that each button press does to change the
difficulty of your game.
5. When you have set these up, right-click on your left paddle sprite and click on
Duplicate .
6. Rename the new sprite to Right . We now have the beginning for making our
right paddle. You will be making a few adjustments, so that a second player will
control the paddle.
Search WWH ::




Custom Search