Skip to content

Commit f234577

Browse files
committed
Reset position when retrieve actor.
1 parent 8a88b5b commit f234577

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

blade-engine/src/com/bladecoder/engine/model/ParticleRenderer.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,8 @@ public void retrieveAssets() {
161161

162162
effect.load(EngineAssetManager.getInstance().getParticle(getParticleName()), atlasTex);
163163
effect.start();
164+
// reset tmp to force repositioning
165+
tmpPosX = Float.MAX_VALUE;
164166
effect.update(lastAnimationTime);
165167

166168
computeBbox();

0 commit comments

Comments
 (0)