ramako

Members
  • Content Count

    2
  • Joined

  • Last visited

Everything posted by ramako

  1. This looks great! I'm gonna play with it. Not sure if this is a dumb question but, are the sprites used in the examples under MIT license too? Edit: Is there any way to feed the json object for the emitter settings instead of the file ?
  2. update: function () { if (this.input.keyboard.isDown(Phaser.Keyboard.DOWN) && cursor.canMove){ cursor.canMove=false; this.permitirMovimiento(); tween.to({ y: 450 }, 200); tween.start(); } else if (this.input.keyboard.isDown(Phaser.Keyboard.UP) && cursor.canMove){ cursor.canMove=false; this.permitirMovimiento(); tween.to({ y: 340 }, 200); tween.start(); Hi guys, I'm using Phaser.io and I want to make a menu screen, where the user can choose either Play or Credits (for example) through keyboard. To reflect this, I am using an arrow that when the user press UP or DOWN the arrow will move accordingly, pointing to the option choice (either Play or Credits). permitirMovimiento is a function that uses time.events.add to add some delay and turns the property of canMove to true . Problem is, the cursor goes crazy after a few inputs, going up and down up and down in some loop that seems like keeps getting longer every time an input is received. Any advices? I've been banging my head over this for some time already.