This is a more complicated program so I want everyone to work on teams! I also have hints for helping with this project, but you must work on a team to get a copy of the hints.
You will be making two people play a volleyball game.
First delete the cat.
Add a new sprite called Anna.
Go to Events and drag when green flag clicked over.
Go to Motion and drag go to x:-117 y:-18
Go to Looks and drag say Let’s play for 2 secs
Go to Events and drag “broadcast Let’s play!” Remember, you have to add a new message to change the words in broadcast.
Go to Events and drag when w key pressed, when a key pressed, when s key pressed, when d key pressed all to the right.
Under w key go to Motion and put “change y by 10”
Under s key go to Motion and put “change y by -10”
Under a key go to Motion and put “change x by -10”
Under d key go to Motion and put “change x by 10”
Add a new sprite called Avery.
Go to Events and drag “when I receive Let’s play!” to the right.
Go to Looks and put “say ok! for 2 secs” under it.
Now go to Control and find “forever” and put it under that.
Now put the following inside forever: Go to Motion and find “go to x:89 y:-18”, in Motion find “move 10 steps”, and in Control find “wait 1 secs”.
Now go to Events and drag “when r key pressed” and put it not connected to anything else.
Go to sensing and put “reset timer” under when r key pressed.
Now to go Events and drag out “when up arrow key pressed”, “when down arrow key pressed”, “when left arrow key pressed, and ““when right arrow key pressed”.
Under up key go to Motion and put “change y by 10”
Under down key go to Motion and put “change y by -10”
Under left key go to Motion and put “change x by -10”
Under right key go to Motion and put “change x by 10”
Now find a new sprite that is a ball, you can pick whatever ball you want.
You will start by going to Events and putting “when green flag clicked” to the right.
Then go to Looks and put “show” under it.
After that, go to Control and put the “forever” under show.
Inside forever, you will go to Motion and put “go to x:-105 y:94”.
Then you will go to control, and put 2 “if ____ then” inside the forever under “go to x:-105 y:94”
Now go to sensing and drag out “touching mouse-pointer” and put it in the first “if ____ then”, change it to Anna, so it will say “if touching Anna then”.
Now drag out another “touching mouse-pointer” and put it in the SECOND “if ___then”, change it to Avery, so it will say “if touching Avery then”.
Now inside of “if touching Anna then” put the following:
In Sound you’ll find “play sound pop”
In Motion you’ll find “change x by 150”
In Motion you’ll find “change y by 25”
In Looks you’ll find “Hide”
In Looks you’ll find “Show”
In Control you’ll find “wait 1 secs”
In Motion you’ll find “change x by 20”
In Motion you’ll find “change y by -30”
Now inside of “if touching Avery then” put the following:
In Sound you’ll find “play sound pop”
In Motion you’ll find “change x by -150”
In Motion you’ll find “change y by 25”
In Looks you’ll find “Show”
In Control you’ll find “wait 1 secs”
In Motion you’ll find “change x by 150”
In Motion you’ll find “change y by -15”
The ball script should be done now.
Go to background and pick a background you like. You can also try drawing a net in the middle of the two people, like they are playing volleyball.
Press the green flag and use the WASD keys to move the first person, and arrow keys for second person. Also, pressing “r” will reset the timer that is shown in the top left.
Retitle it first and last name final project
Download and email it to mward@cps.edu
Subject: Scratch Volleyball Project
Make sure everyone on the team sends me a copy of the final program.