Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Scratch 2.0 Game Development Hotshot
  • Table Of Contents Toc
Scratch 2.0 Game Development Hotshot

Scratch 2.0 Game Development Hotshot

4.4 (14)
close
close
Scratch 2.0 Game Development Hotshot

Scratch 2.0 Game Development Hotshot

4.4 (14)

Overview of this book

An easy-to-use book, containing 10 engaging projects that will help you learn how to build video games with the easy to use Scratch 2.0 environment. If you are a new, or current Scratch user and would like to improve your understanding of the new Scratch 2.0 interface, and learn how to make video games, this book is ideal for you. Each project is explained in-depth from start to finish, so everyone can follow along, even if you don’t have much previous experience with the software. If you want to become a video game designer, this book is an easy- to- use and friendly guide about the world of interactive media. It will teach, challenge, and inspire you to create great interactive projects.
Table of Contents (18 chapters)
close
close
Scratch 2.0 Game Development HOTSHOT
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
2
Index

Creating attack pattern 1


To make this fight more interesting, let's start writing the attack patterns.

Prepare for lift off

The thing with attack patterns is figuring out an interesting movement pattern first and then finding a way to create a script that moves the sprite according to that pattern. For this game, we will create three very distinct movement patterns.

The first one will be to move the boss in a pattern similar to the number 8. The number 8 will be lying horizontally, so the boss sprite will appear to be bobbing back and forth and weaving around the player character.

Engage thrusters

We will start this pattern when the correct message is called. Since this is the first pattern that we make, we have named it pattern1.

  1. We add a new script starting with when I receive <pattern1>.

  2. Then we use set rotation style <all around> so that the sprite can move about freely and make loops as it goes.

  3. We move the sprite to the center of the screen with glide 1 secs to x: () y: (); fill...

CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Scratch 2.0 Game Development Hotshot
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon