In this challenge we will create a three-player game using Scratch.
One player (the yellow ball) will be chased by two other players the red player and the blue player.
- The red player will use the arrow keys to control their sprite.
- The blue player will use the “WASD” keys to control their sprite.
- The yellow player will use the mouse pointer to control their sprite.
The game will use two score variables one for the red player, one for the blue player. At the start of the game both scores will be initialized to 0. Every time a player collides with the ball their score will be incremented by 1. The ball will then be randomly moved on screen by resetting its x and y coordinates.
To implement this game you will have to create three sprites and use the code provided below:
Extension Task: Adding Walls/Platforms
To make this game more interesting we will add walls/obstacles that the red player, the blue player and the yellow ball will have to avoid when moving around.