Jump to content

Multiple keyboard listeners?


Recommended Posts

Hello guys, I've created an object that extends a Phaser Sprite object and I'm trying to put a keyboard listener on it. I'm doing it through (inside the object):


and this works fine for the first object, but, if I instantiate more objects just the last created object receive the keyboard input (seems like the last created overwrites the listener from the previous one).

My objective is make all objects listen to the keyboard input, any tip? 

Thanks in advance!

Link to comment
Share on other sites


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...