Game Development Reference
In-Depth Information
Delaying cannonball destruction
Run the game. When the cannonball stops, it is reset very abruptly. In order to make this
easier for the game to handle, we will add a Wait action.
Let's wait for a few seconds; we will set the value of Seconds to 2.5 seconds, as shown
in the following screenshot:
We also need to move the action up in the order of actions. Highlight it and drag it to the
top. Remember that the actions are read line by line, which means that the first action will
happen first, and so on. In this case, it will wait for 2.5 seconds and then destroy the ob-
ject. Run the game and try it out.
Search WWH ::




Custom Search