O'Reilly logo

Scratch Cookbook by Brandon Milonovich

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 4. Basic Gaming

In this chapter, we will cover:

  • Creating a moving object
  • Adding another ball
  • Object interaction with a background
  • User interaction with a game
  • Using mouse control
  • Keeping score
  • Objects disappearing
  • Building a maze
  • Using the timer

Introduction

Up until this chapter, we've used Scratch to either build the foundation for a game or tell a story. Our last chapter was focused on adding animation and developing other fundamentals that we needed to get going in this chapter. We're going to focus on several Scratch principles here, including working more heavily with variables, digging deeper into sensing blocks, and continuing with looks and motion blocks we've used before. Now we're going to turn our attention to building our very first ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required