Answer the question
In order to leave comments, you need to log in
Particle Effects in the Editor and in the game look different. With what it can be connected?
Good afternoon! I'm trying to implement a lightweight particle system in LibGDX for Android. I created an effect in the Particle Editor, wrote the code for the application, but the result does not converge with the Editor, only one particle is drawn, although the system specifies from 6 to 70. I saw similar questions on the net, but did not find a single answer that would help . Maybe I'm doing something wrong? I do not do any additional actions in the code, only loading, updating and displaying.
Property class: ParticleEffect effect;
In the constructor:
effect = new ParticleEffect();
effect.load(Gdx.files.internal(PATH_TO_PARTICLE), particleAtlas);
effect.setPosition(Gdx.graphics.getWidth() / 2, Gdx.graphics.getHeight() / 2);
effect.start();
effect.draw(spriteBatch);
effect.update(delta);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question