In this video, you'll remix this gameso that a second player can controla chaser using key press events.
To start, select a chaser spray.
This spray is going to do somethingdifferent from the other chasers so rename it player two.
To program the chaser to move with key press events,remove only the code that moves the sprayand leave the if statement that checksif the two sprays are touching.
Next, program events to move the sprite forward, backward,left and right when a second player presses the arrow keys.
This video will fast forward through additionof these blocks, but when you create this code,remember that you need to add four events,four motion blocks, and if you want the spriteto run smoothly, a repeat until notpressing code stack for each event.
After you code all four events,tinker with the sprite speed by changingthe value of the move 10 steps block.
Play around with those values until player twomoves slowly enough to make the game fair.
It may take a few tries to get this right.
A big part of computer science is trying new things.
Testing them, then going back to tinkerwith the code until you're happy with the result.
Now it's your turn.
Program events to move the sprite forward, backward,left and right, when a second player presses the arrow keys,then tell users how to work your program usingeither a save log or instructions in the project page.
One you've finished programming your gamefor a second player, ask your neighbor to try it out.
Choose an Add-On
play_circle_filled
Play a Sound if Caught
Add a sound to your game and program your project to play that sound.
arrow_forward
play_circle_filled
Play Your Game with a Friend
Program one sprite to be controlled by another player.
arrow_forward
play_circle_filled
Change Up the Player
Change up your player's costume whenever it touches another sprite.
arrow_forward
play_circle_filled
Speed Up the Chase
Make the game harder by making the chasers faster.
arrow_forward
play_circle_filled
High Score!
Create a new variable that stores the game's current high score.