Creating Ghost Busters Game using Scratch Program

in #utopian-io7 years ago

Ghostbusters
Introduction You are going to make a ghost-catching game!
scrach.jpg
Step 1: Animating a ghost Activity Checklist
Start a new Scratch project, and delete the cat sprite so that your project is empty. You can find the online Scratch editor at jumpto.cc/scratchnew.
Add in a new ghost sprite, and a suitable stage backdrop.
scratch pic.jpg
Save your project
Step 2: Random ghosts Your ghost is really easy to catch, because it doesn’t move!
Activity Checklist
Add this code to your ghost, so that it repeatedly appears and disappears:
when clicked forever hide wait 1 secs show wait 1 secs
Test out your ghost’s code, by clicking the green flag.

Save your project
Challenge: More randomness
Can you make your ghost wait a random amount of time before appearing? Can you use the set size block to make your ghost a random size each time it appears?
Save your project
Step 3: Catching ghosts Lets allow the player to catch ghosts!
Instead of staying in the same position, you can let Scratch choose random x and y coordinates instead. Add a go to block to your ghost’s code, so that it looks like this:
Test our your ghost again, and you should notice that it appears in a different place each time.
scratch pic.jpg
Activity Checklist
Challenge: Adding a sound
Can you make a sound each time a ghost is caught?
Save your project
Step 4: Adding a score Let’s make things more interesting by keeping score.
Activity Checklist
To allow the player to catch a ghost, add this code:
when this sprite clicke d hide
Test out your project. Can you catch ghosts as they appear? If you find it difficult to catch the ghosts, you can play the game in fullscreen mode by clicking this button:

To keep the player’s score, you need a place to put it. A variable is a place to store data that can change, like a score.
To create a new variable, click on the ‘Scripts’ tab, select Data and then click ‘Make a Variable’.
Type ‘score’ as the name of the variable, make sure that it is available for all sprites, and click ‘OK’ to create it. You’ll then see lots of code blocks that can be used with your score variable.
You’ll also see the score in the top-left of the stage.
When a new game is started (by clicking the flag), you should set the player’s score to 0:
Save your project

Step 5: Adding a timer You can make your game more interesting, by only giving your player 10 seconds to catch as many ghosts as possible.
Activity Checklist
when clicked set to 0 score ▼
Whenever a ghost is caught, you need to add 1 to the player’s score:
Run your program again and catch some ghosts. Does your score change?
You can use another variable to store the remaining time left. Click on the stage, and create a new variable called ‘time’:
This is how the timer should work:
The timer should start at 10 seconds;

Here’s the code to do this, which you can add to your stage:
This is how you add the repeat until time = 0 code:
The timer should count down every second; The game should stop when the timer gets to 0.
when clicked set to 10 time ▼ repeat until time = 0 wait 1 secs change by -1 time ▼
stop all ▼
Drag your ‘time’ variable display to the right side of the stage. You can also right-click on the variable display and choose ‘large readout’ to change how the time is displayed.
Ask a friend to test your game. How many points can they score? If your game is too easy, you can:

Save your project
Challenge: More objects
Can you add in other objects to your game?
You’ll need to think about the objects you’re adding. Think about:
If you need help adding another object, you can reuse the steps above!
Test your game a few times until you’re happy that it’s the right level of difficulty.
Give the player less time; Make the ghosts appear less often; Make the ghosts smaller.
How big is it? Will it appear more or less often than the ghosts? What will it look/sound like when it has been caught? How many points will you score (or lose) for catching it?

Save your project
scratch pic.jpg

Sort:  

Hi! I am a robot. I just upvoted you! I found similar content that readers might be interested in:
https://codeclubprojects.org/en-GB/scratch/ghostbusters/

Correct

Na so. lol

Lol. @sirfreeman why you dey laugh your guy na

no mind am lol

tell am say the program no hard to learn.