Embed Game x

By embedding games on your website or application you are agreeing to the Construct.net Arcade Terms of Service.

Create Your Own Games Build and publish your own games just like Grid - snap to grid to this arcade with Construct 3! Share this game
Full Game

Grid - snap to grid

E
907 players, 1,013 plays 0 playing now, 3 most ever online
3
0 favoris
paradine Published on 20 May, 2018

#Features:#

- Changing grid width and height is simple

- You can snap objects to grid

- Very simple and well commented code

- No third party plugins or behaviours are used

You can purchase this template here

Instructions

Purchase this template and use in your games!

  • 4 Comments

  • Order by
Want to leave a comment? Login or Register an account!
  • [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)

  • 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=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.

  • 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

In The Asset Store

This arcade game is a preview for following asset for sale in the Asset Store:

13 favoris
Snap to visible grid - perfect solution for any game genre

Suggested Games