Example usage for com.badlogic.gdx.graphics.g2d ParticleEmitter setAttached

List of usage examples for com.badlogic.gdx.graphics.g2d ParticleEmitter setAttached

Introduction

In this page you can find the example usage for com.badlogic.gdx.graphics.g2d ParticleEmitter setAttached.

Prototype

public void setAttached(boolean attached) 

Source Link

Usage

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);
        }
    }
}