Game Development Reference
In-Depth Information
Creating a cannonball
We need to create a cannonball to fire at the other game objects. Hence, we will create and
add in a projectile—a cannonball—for the cannon to fire. Add a On any click event by
navigating to Mouse | On any click .
Then, add a Spawn another object action on the cannon, as shown in the following
screenshot. We are going to spawn the cannonball when we click the mouse button.
The object is, of course, going to be the cannonball.
Tip
This is where naming your game objects clearly really makes a difference—particularly if
you have more than 200 game objects.
Search WWH ::




Custom Search