Book Image

Scratch 2.0 Game Development Hotshot

Book Image

Scratch 2.0 Game Development Hotshot

Overview of this book

Table of Contents (18 chapters)
Scratch 2.0 Game Development HOTSHOT
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Tweaking and balancing


To finish this project, we will add a few more details to prepare for the next project. In the next project, we want to add a boss fight to this game; but when should the boss appear? I've decided to make this a timed event. The player should survive for a certain amount of time, shooting enemies along the way to increase the power of the spear. After 90 seconds, the starfish will disappear and a boss monster will appear.

You may have also noticed that the scrolling images tend to stick to the sides of the stage before disappearing. This is a feature of Scratch to prevent you from completely losing sight of sprites. To get rid of these lingering sprites, we use a visual trick to obscure them.

Engage thrusters

Let's first work on the time limit to complete our game. We will use the built-in timer to count the seconds until the boss appears.

  1. Go to the Stage object to add some scripts.

  2. We first reset the timer (using the reset timer block) to start counting from 0 when the...