Bitsbox's .explode, .pop, .splash, .burn, and .pow commands make a stamp appear to explode, pop, splash, burn, or pow.
You can pass an optional variable with a function name you'd like to call once the animation is complete.
Functionally, explode(), pop(), splash(), burn(), and pow() are identical, only with a different animation that occurs. Once the animation completes, the stamp still exists, but is hidden. You can later use the show() method to make it visible again, if you like.
Here's an alternative way to call them, using the stamp's tap variable.
This code uses the callback to make a game where you can tap an apple to make it explode, make a sound, and then make it appear at a random location once the explosion animation is finished.
Another optional parameter is a name of a stamp or an animated stamp you'd like to show instead of an explosion. Here's a little game that uses a moneybag animation instead of the default mushroom cloud.