Grid - snap to grid

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

  • Order by
  • [quote=maXimum7]

    Hi :)

    ist it possible to check if there is an object placed next to a coordinate? For example, I am placing an object to (16,2), can I check if there is an object at coordinates next to it (16,1;16,3;15,1;17,1)?

    Thanks

    [/quote]

    Hi:)

    Yes, it is possible. For example if you have Object1 at (16,2) and you want to check if Object2 is placed at (16-5,2+3) use this condition:

    Object2 compare X=Object1.X-5*GridWidth

    Object2 compare Y=Object1.Y+3*GridHeight

    And so on)