kittykatattack / hexi

Make games the fun way!
MIT License
551 stars 83 forks source link

Multilayer event handlers #4

Open MCumic10 opened 8 years ago

MCumic10 commented 8 years ago

Hello,

When two interactive objects are atop of each other and user click on them, both event handlers are fired. Is there a way to ensure only topmost element event handler is fired?

Thank You, Milutin

kittykatattack commented 8 years ago

Hmmm... I'm not sure about this! I tend not to use Pixi's event handler in my own code just to keep things simple, so I can't really comment. Can anyone else out there reading this offer any advice?