Game Development Reference
In-Depth Information
Spawning the textbox
In order for the textbox to appear, we need to spawn it just like any other game object. Re-
write the text in the textbox to
+100
. This textbox will be spawned when the
goalBall
sprite is destroyed.
Add a new
On every tick
event, and then add a
Move at angle
action to the new textbox.
This is shown in the following screenshot:
Set the angle to
270
, which is the angle for directly upwards in the game engine. Set the
distance to
8
.
Tip
The higher you make the distance score, the faster the textbox will rise.