Skip to content

Please update your browser

Your browser version is not supported by this site. CS First may not work properly. Learn more

arrow_back Second Player

Transcript

This add on video will show you how to add a second athlete sprite to your project so you can play with your friends and neighbors.

For starters, to easily make another sprite with all the same code as your current athlete, duplicate the athlete sprite.

Right click it and click duplicate.

Next, adjust the new duplicate athlete slightly to make it unique.

Start by changing the sprite's costume in the costumes tab.

Click this flip up, down button in the top right to make the athlete face in the opposite direction.

To change some colors on the new athlete, use the paint bucket tool.

Next, change the backdrop on the stage from one player to two player.

Click the stage, then the backdrops tab, and select the backdrop with both a blue and a red bar.

Drag the new athlete to the top of the stage so that it's opposing the other player.

Okay, the last step is to change the controls for the second player so that it doesn't move with the same keys as the first one and that two players can play at the same time.

Back in the scripts, click the drop down in each sensing block in the forever loop.

Select two different keyboard keys.

A and D are good choices because they're on the other side of the keyboard.

Test out your new athlete by clicking the flag and using the keys that you selected to move it around.

Does the ball bounce off the new sprite?

Does it move the right way?

Great, then you're done.

All right, here's the game plan.

Duplicate your athlete.

Change the new athlete's costume, orientation, and position, then change the controls for this new athlete sprite.

Choose an Add-On
Bounce Reaction
Program the ball sprite to do or say something when it bounces.
Second Player
Add a second athlete to make a two player game.
Keep Score
Add a score counter to the game.
Play the Computer
Program a sprite to play against the user.
arrow_backward Back
Next arrow_forward
Instructions
  1. Choose an Add-On, and click "watch" to learn how to build it.
  2. Once you finish one Add-On, try another one below the video!