Grid - snap to grid

You're viewing a single comment in a conversation. View all the comments
  • 1 Comments

  • Order by
  • [quote=dontdrainmybrain]

    Hi

    Is it possible to snap to the grid in code? For example, I am generating a number between 1 and 20, can I set a grid of 20 x 20 and then snap a sprite to coordinate (16,2) in code?

    Thanks

    [/quote]

    Hi,

    Yes, it's possible.