Debug mode, with rule/grid for locating displayed images

It would be great if Corona SDK included some kind of rule or grid, just to make easier locating images in their exact position on the screen. i.e. a line every 5 pixels, and, when you’re done, simply turn off.

Something like

display.grid = true / false

even better:

display.grid (5,20) ->> a line every 5 pixels in weight, and every 20 pixels at height.

Actually i’m locating the images with a poor accuracy and then fixing their positions reloading the simulator several times. [import]uid: 77881 topic_id: 19067 reply_id: 319067[/import]

+1

It would be very useful to have a grid over the display to help the positioning easier. [import]uid: 89165 topic_id: 19067 reply_id: 73525[/import]

grid would be awesome, +1 for this feature [import]uid: 16142 topic_id: 19067 reply_id: 73530[/import]

You could just create an image the same dimensions as your display with a grid drawn at the spacing you require and display it on top of everything else (with an alpha of 0.25 or something). Comment it out when you don’t need it. Delete it when you ship. [import]uid: 9422 topic_id: 19067 reply_id: 73547[/import]

@XenonBL - That`s such a good idea, thanks!

However having a simple “native switch” about show/hide grid would be the ideal. It would work without need hard-coding it into our project files. :slight_smile:
Cheers,
Rodrigo. [import]uid: 89165 topic_id: 19067 reply_id: 73550[/import]

I created something to do this. I’ll see if I can get it cleaned up a bit and posted. [import]uid: 19193 topic_id: 19067 reply_id: 73558[/import]

@ScottPhillips : Thanks for sharing mate!
Cheers,
Rodrigo. [import]uid: 89165 topic_id: 19067 reply_id: 73656[/import]