Scirra Arcade

92 players / 107 plays

Grid - snap to grid

Click here to refocus game
[ Close Window ]

Report Game

Report this game if it's content is inappropriate. Misuse of this feature may cause your account to be suspended.





[ Close Window ]

Game Instructions

Purchase this template and use in your games!

[ Close Window ]

Embed Game

Copy + paste this code onto your website so your visitors can play this game!

On Wordpress

First download the iFrame plugin. Once installed, copy the following code onto your website:

Are you a programmer?

Don't forget, we have a Scirra Arcade JSON API for embeddable games published on this arcade!

Game Cards

Link to this game with these dynamically updating game cards!

Long Card

Wide Card

Grid - snap to grid

Version 1.0.0.0

by paradine
First published on 20th 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

Plays Stats

107 total plays

91 guest plays

16 Scirra member plays

Users Stats

92 unique players

82 unique guests

10 Scirra members

Last Updated

Game stats last updated 0.00104000166666667 minutes ago

Time Stats

1 hour 20 minutes total play time

1 minute 10 seconds average play length

Active Users

2 highest number of simultaneous players

Sunday, May 20, 2018

Total Plays Over Time

Total number of plays this game has had since it was first published.

[ Link to this chart! ]

Players Over Time

Shows how many players this game has attracted since it was first published.

[ Link to this chart! ]

Average Play Time

How long people spend playing this game

[ Link to this chart! ]

Player Locations

Where in the world people are playing this game from

[ Link to this chart! ]

Comments

  • dontdrainmybrain 152 rep 1

    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

    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
    Posted Monday, July 16, 2018 at 9:43 AM.
  • Game Author
    paradine 38.8K rep 1
    Quoted from 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

    Hi,
    Yes, it's possible.

    [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.
    Posted Monday, July 16, 2018 at 2:28 PM.
  • maXimum7 187 rep 1

    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

    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
    Posted Tuesday, May 21, 2019 at 7:42 AM.
  • Game Author
    paradine 38.8K rep 1
    Quoted from 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

    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)

    [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)
    Posted Tuesday, May 21, 2019 at 1:58 PM.

Leave your comment

Your opinion matters! To leave comments you'll need to register a new account or login to your exisiting account.

Your Snaps

    Trophy Shelf

    Recent Players

    • sdnewman's avatar
    • El Brako's avatar
    • paradine's avatar
    • rinesjoseph's avatar
    • odiusfly's avatar
    • ButcherZV's avatar
    • maXimum7's avatar
    • dontdrainmybrain's avatar
    • terragame454's avatar
    • hiisileiri's avatar