Building the demolition equipment
We have everything we need to build towers, but this game is all about demolition. The player would become bored if all they had was TNT to destroy the towers. We are going to utilize some more physics functions and create some new equipment: a Wrecking Ball and a Magnetic Crane.
Creating a Wrecking Ball
Let's start with the Wrecking Ball as we have already built a large portion of it. We will utilize the Chain and Anchor and add a Ball to it.
Create a new Sprite,
spr_WreckingBall
, and loadChapter 6/Sprites/WreckingBall.png
with Remove Background checked. Center the origin and click on OK.Create a new Object,
obj_WreckingBall
, and apply thespr_WreckingBall
as its Sprite.We will want the Wrecking Ball to always be drawn in front of the chain that holds it. Set Depth to
-100
.Check the box for Uses Physics. We do not need to change Collision Shape, as the Wrecking Ball is a circle.
We want this Wrecking Ball to be very powerful, so set Density to
50
.As it is...