O'Reilly logo

LibGDX Cross-Platform Development Blueprints by Indraneel Potnis

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Particle effects

In this section, we will learn how to create particle effects using the Particle Editor tool and use them in the game.

Editor setup and basics

When the player dies, he just disappears for some time and reappears. Let's add an explosion effect when he hits a hazard or an enemy. There is a nifty tool shipped with LibGDX called Particle Editor, which makes it easy to create such effects. Let's see how to run this utility. Head over to https://libgdx.badlogicgames.com/tools.html to download it.

Click on the Download link below the 2D Particle Editor section. Once you have downloaded it, you will get a JAR file, which you can double-click to open the utility:

A single particle is represented by an image. The editor allows you to add multiple ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required