codart

Members
  • Content count

    6
  • Joined

  • Last visited

  1. Should i use the default "game.time.events" for every event or one instance of Phaser.Timer class for each? When i try the first solution, i encouter some strange behaviors with the timer. To be more specific, every 10 second i spawn a wave of enemies, this work fine, but when i loop an event for all enemies to fire every 2 secs then the enemies wave sometime spawn sooner than expected. Any suggestion?
  2. I have two short questions: 1. When enabling P2 physic on sprite, how can i disable the rotation on impact with other body, and how to disable game canvas bound so the sprite can move out of bound 2. set sprite.angle does not work with P2 physic, when i turn off P2, it work perfectly please help!
  3. lewster32 is an expert, every thing i searching for, every time he answered
  4. lewster32, you saved my day. It's really, realy help full
  5. bump! anybody here?
  6. Hello everyone, let me show you my case, i'm making a typing game in which player should be able to input keys in range of [a-z]. My problem is i do not find any thing like: game.input.onKeyDown(keyHandle); function keyHandle(keyCode) { if(keyCode===65) { console.log("A"); } } i just dont want to add handle for every key, it's seem to be overkill to me :< THank you for reading