Claudiovc

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!

 

    Claudiovc

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.