Jump to content

Phaser Grid information


Mikee17
 Share

Recommended Posts

Greetings, I'm loving this engine the more I play with it.  My question is regarding the phaser's creation of grid (for my board game use), is there a call I can make to get me the exact grid number (x,y) the current sprite is in?  I don't see any example that goes further than showing creation of the grid lines and aligning sprites inside it. So If I create a 9x9 grid and allow a sprite to be drag and snap to a grid I'd like to be able to make a call and know that the sprite is on grid (3,5) for instance, not the bounds().

Thank you.

-Michael.

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.

Guest
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.

Loading...
 Share

  • Recently Browsing   0 members

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