Sign in to follow this  
gamify

tile map and tile object

Recommended Posts

when i select tile by pointer for panning is working so when i drag and drop object to the map and click the object instead of object [object background ] i.e tile is selected for panning

Share this post


Link to post
Share on other sites

This sounds like maybe a pointer event ordering thing? By default, pointer events trigger on objects "top-down". So if you have an entity that is above a background layer, the entity will receive the pointer event first, and can choose whether that event propagates to entities and layers below it. The event propagation model is similar to the capture phase in W3C events. If you want to prevent propagation, your event handler just needs to return false.

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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.