Introduction

In this chapter, we will gradually learn how to make a Falling Ball game

You will be a bouncing ball, crossing the platform will earn points, crossing three platforms in a row will enter the sprint state, and the first platform you touch will be destroyed by you, touching the red platform will die

104ed226-064e-4712-a891-919d63c09cd2.gif

We will learn the following in this chapter so that we can create a complete MiniGame:

1. Create a project

Select Create WORLD in the APP, as this is a single player game, you need to select Single-Player when creating the world

image.png

2. Broadcast and Variable Required

To make a Falling Ball, we need to use two Global Variables, one for recording scores and the other for recording the number of scores required for the sprint state

Let's place any object and then find the When broadcast is received with event in the Properties option list below

Add a script to it and enter the Select Broadcast interface

image.png

Click the plus sign to enter the broadcast creation, click the plus sign on the right side of the Parameter List in the pop-up interface, and then select Numbers in the Parameter Type.