Jump to content

Event when dragging over a sprite


Recommended Posts

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!



Link to comment
Share on other sites


  • Recently Browsing   0 members

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