Default Picture coordinate

Hi.

i have been tweaking this for a while, and this really bug me. So I thought I will try to ask it on the forum.

What is the default coordinate position when you put a new image without any specific coordinate?

local try = display.newImage("picture.jpg")

when you code it plain like this, in default, where will it show?

because in what tutorial shows, it gives a normal picture, positioned on the center of the screen.

While this happened on my simulator.

Hi Jonathan,

In the current Graphics 2.0-based engine, images are positioned around their center point, and the default coordinates are 0,0 if you don’t specify other (this is the top-left point of the screen, as it always was).

This guide should help clarify the usage of groups and object positioning:

http://docs.coronalabs.com/guide/graphics/group.html

Best regards,

Brent

so, the 0,0 coordinate for the default position is located on top left of the screen, and not on the center of the device?

[EDIT] i’ve read the documentation. thanks for the pointer :slight_smile:

Hi Jonathan,

In the current Graphics 2.0-based engine, images are positioned around their center point, and the default coordinates are 0,0 if you don’t specify other (this is the top-left point of the screen, as it always was).

This guide should help clarify the usage of groups and object positioning:

http://docs.coronalabs.com/guide/graphics/group.html

Best regards,

Brent

so, the 0,0 coordinate for the default position is located on top left of the screen, and not on the center of the device?

[EDIT] i’ve read the documentation. thanks for the pointer :slight_smile: