Time for action – go boom

I must say, there's a distinct missing element to our bomb-centric game to this point. What could it be, what could it be? Ah, yes. ASSPLOSIONS. When they hit the ground OR the player, those bombs need to blow up real good. Sounds like a particle system would do just the trick.

  1. Make sure you're no longer testing the game.
  2. Navigate to GameObject | Create Other | Particle System. Rename it Explosion (or Assplosion if you want to be awesome about it).
  3. Create a new Prefab and name it Explosion. Drop it into your Prefabs folder to keep the project organized.
  4. From the Hierarchy panel, click-and-drag the Explosion Particle System into the Explosion Prefab container.
  5. Re-select the Explosion GameObject in the Hierarchy panel. Point ...

Get Unity 4.x Game Development by Example Beginner's Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.