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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

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