Garland

Members
  • Content count

    4
  • Joined

  • Last visited

  1. Phaser Particle Editor

    Sorry for not responding for a long time, I've been very busy x.x So, I think the problem is actually I'm using Node.js instead of Common.js, in your github page you list two ways of importing the plugin: CommonJS and ES2015. There is a way of importing with Node.js? This line that I showed before was using Node.JS: var ParticleEditorPlugin = require('@koreez/phaser-particle-editor-plugin'); Thanks in advance!
  2. Phaser Particle Editor

    Sure, here it is partyMagic.json
  3. Visual Novel Engine RenJS

    Great work! I'll start to learn, seems a nice option to make a VN Looking forward for updates
  4. Phaser Particle Editor

    Hi! This might sound like a silly question perhaps, I'm new to Phaser and I would like to use this particle editor in a game. I created a json with the editor, but unfortunately I cannot make the particles start emitting. The code is here: var game = new Phaser.Game(800, 600, Phaser.AUTO, 'phaserG', { preload: preload, create: create, update: update }); var ParticleEditorPlugin = require('@koreez/phaser-particle-editor-plugin'); function preload() { game.load.image('sky', 'assets/sky.png'); game.load.json('magic', 'partyMagic.json'); } function create() { game.add.sprite(0, 0, 'sky'); game.physics.startSystem(Phaser.Physics.ARCADE); game.plugins.add(ParticleEditorPlugin); var phaserJSON = game.cache.getJSON('magic'); game.make.particleEffect(10, 10, phaserJSON); } function update() { } Thanks in advance!