Claudiovc Posted February 21, 2014 Share Posted February 21, 2014 Hey there, I've been playing with Phaser since yesterday, it looks great! My first experiment is going to be a simple Match-3 game and I need to know when the user is dragging a sprite over another one.If I register to the following event, my function gets called when I hover though the sprites. However, that doesn't happen when I'm dragging a sprite around.sprite.events.onInputOver(onTileOver, this);Any tips on how i could achieve that?I'd need that to give some feedback to the user - add an effect if the user can't release the tile there, e.g.Thanks in advance! Claudiovc Link to comment Share on other sites More sharing options...
rich Posted February 22, 2014 Share Posted February 22, 2014 Yes the dragged sprite would take the priority and the one below won't register. I suggest you do some kind of overlaps / bounds intersects test as the sprite is being dragged. Link to comment Share on other sites More sharing options...
Claudiovc Posted February 24, 2014 Author Share Posted February 24, 2014 Ok, thanks Rich, I'll go with that approach. Link to comment Share on other sites More sharing options...
Recommended Posts