scene restart stuff, doesn't spam rerender

This commit is contained in:
Mashy
2018-11-29 01:48:13 +10:00
parent 5c9af086bd
commit 0a9040b427
5 changed files with 74 additions and 36 deletions
+1 -1
View File
@@ -32,7 +32,7 @@ class CombatSkills extends Phaser.GameObjects.Group {
scale: { start: 0.4, end: 0 },
quantity: 4,
blendMode: 'ADD',
lifespan: 2000,
lifespan,
});
this.add(particles);
this.scene.time.delayedCall(1000, () => { emitter.stop(); }, [], this.scene);