List of usage examples for com.badlogic.gdx.graphics.g2d ParticleEmitter setAttached
public void setAttached(boolean attached)
From source file:com.ridiculousRPG.event.EventObject.java
License:Apache License
private void translateParticles(float x, float y, Array<ParticleEmitter> emit) { for (int i = 0, n = emit.size; i < n; i++) { ParticleEmitter e = emit.get(i); if (!e.isAttached()) { e.setAttached(true); e.setPosition(x, y);// w ww .ja v a2s. co m e.setAttached(false); } } }