February 2014
Intermediate to advanced
330 pages
7h 11m
English
So we can now place cannons that shoot cannonballs in the direction of the mouse cursor. But we still aren't hitting any enemies. Let's quickly fix that problem.
We will check when a cannonball and an enemy collide and take proper action accordingly. The steps to do it are as follows:
0.05 seconds by using the wait ... secs block. This is to ensure that the enemy has time to respond to the collision as well.So cannonballs will not only expire after having traveled ...
Read now
Unlock full access