Game Development Reference
In-Depth Information
Adding particles when goalBall is destroyed
Go back to the event sheet and add an action to the
goalBall
sprite's
On collision with
ground
. Add a
Spawn another object
parameter to
goalBall
. Make sure it is spawned
at the
Layer
point value
1
, as shown in the following screenshot:
Copy-and-paste this action to the other collision object
On collision with cannonBall
so
that there is a particle explosion when the cannonball hits an object. Then, copy the colli-
sion object, but change it so that it is activated when this
goalBall
collides with anoth-
er
goalBall
sprite. Check the following screenshot: