Closed Waclaw-I closed 6 years ago
Hi @Waclaw-I ! Thanks for your report.
Actually this is an issue of readme and we should fix it ASAP ;)
Please try to do this:
function preload() {
this.load.atlas('shapes', 'assets/shapes.png', 'assets/shapes.json');
this.load.text('particle-effect', 'assets/particle-effect.json');
}
function create() {
this.add.particles('shapes', new Function('return ' + this.cache.text.get('particle-effect'))());
}
Cheers!
Thanks for providing the solution @saqsun , working like charm!
Hi!
I was testing your particle editor and tried to import its output into my Phaser 3 game. Everything was fine untill I added an emitZone with shape defined.
Expected Behavior
Editor should produce a valid JSON to use.
Current Behavior
Steps to Reproduce (for bugs)
TestProject.zip I also included .ppe file inside.
Context
Your Environment
Thanks for this awesome editor! I am really enjoying it. Cheers!