Particle Effects are fairly simple to use. You can add them to your scene either from the Build Menu in the ToolBar, from the Asset Library, or directly as a logic node from the Logic menu.
particle_effects_add.mp4
There are different situations in which you may want to use a particle effect. This article will explore some of them.
Adding a trail to a character is simple and can make a huge difference! This effect will always be executing, meaning that it will be on at all times.
particle_effects_trail.mp4
- Add a player to the scene from the Asset Library. We recommend starting with the Platformer player.
- Add the Trail particle effect from the Asset Library. It can be found under the Effects section.
- Drag a link from the Particle Effect - Target to the player.
- Playtest and watch your character move around!
Tip!
You can place the effect higher, lower or more to the sides by adjusting the x, y and z values in the Details panel.
Make an effect play at the tap of a button. This effect will only execute once when the button is pressed.
particle_effects_button.mp4
- Add a Button node from the Logic Menu. It can be found under Triggers.
- Add your desired effect. For this example, add the Confetti Blast effect.
- Open the effect and turn off the Executing toggle. This is so that it only executes when we tell it to via the button, and not before.
- Drag a link from Button - On Start to Particle Effect - Executing. Select On.
- Playtest. Now every time you press the button, the effect will play.
Explore the following links for more related content and additional resources. These pages contain valuable information that complements what you’ve just read.
What Are Particle Effects?
Creating Particle Effects
Triggering Events