Challenge 1: Pop Animation
Popping bloons is cool and all, but they just disappear. How can we make the pop... pop?
Your challenge is to add a popping effect to each bloon when it is popped.
You will need to create a "pop" graphic and position it off-screen. This will serve as the template for other effects.
You may find the following blocks useful:
class of...
sensing block gives a reference to an instance. Use with tags to record a copy of another object.When removed
event block runs when an object is destroyed.create new instance of class...
draw block creates a new instance of that reference.100 milliseconds have passed
control flow block defines an event to occur once, after an amount of time has passed. Useful for scheduling an object to destroy itself.Set x position of...
transform block lets you move a block to a specified location.
Pop Variation
Once you have popping effects, why not mix it up? Spawn the instantiated copies with random rotations, between 1 and 360 degrees.
This is an extra challenge, because rotated copies spin around the top left corner by default. You will need to set the anchorPointX
and anchorPointY
transform properties of the pop to an appropriate value (such as half of width and height).