Which way do the XY coordinates go?

I bought a mac yesterday and am waiting for the download to go.
Can someone remind me which way the coordinates go on the screen.

Is it:

10  
9  
8  
7 X  
6  
5   
4  
3  
2  
1  
 1 2 3 4 5 6 7 8 9 10  

With the “X” being 7,8, or was the Y reversed? [import]uid: 79135 topic_id: 19823 reply_id: 319823[/import]

In the graph you provided, x would be 8 (measured along the bottom), y would be 7.

But in Corona, y runs from the top, not the bottom, so the numbers should get higher as they come down the screen. [import]uid: 64596 topic_id: 19823 reply_id: 76904[/import]

You are right about the co ordinates. What was I thinking… haha

Thank you Shane. [import]uid: 79135 topic_id: 19823 reply_id: 76907[/import]

0,0 is in the Top Left corner. Y values increase towards the bottom of the screen, X values increase towards the right side of the screen:

0,0 . . . . . . . . . . . . . . . . display.contentWidth, 0  
.  
.  
.  
.  
.  
display.contentHeight, 0 . . . . . . display.contentWidth, display.contentHeight  

[import]uid: 19626 topic_id: 19823 reply_id: 76912[/import]

Just for future thread viewers;

[lua]1
2
3
4
5
6
7
8
9
1 2 3 4 5 6 7 8 9[/lua]

Peach :wink: [import]uid: 52491 topic_id: 19823 reply_id: 76940[/import]

That’s a very handy image Rodrigo! :slight_smile: [import]uid: 52491 topic_id: 19823 reply_id: 76949[/import]

haha, I made that image. it’s ok to use it. [import]uid: 13560 topic_id: 19823 reply_id: 76968[/import]

@lano78

Sorry to be posting here your image but I thought it could help here and also I did not remember that the image was your. :\

Cheers,
Rodrigo. [import]uid: 89165 topic_id: 19823 reply_id: 76984[/import]

Just for future reference as well:

X and Y Display Reference - CoronaSDK

PS: The image`s credits goes to the member lano78.
Cheers,
Rodrigo. [import]uid: 89165 topic_id: 19823 reply_id: 76942[/import]

Thank you Mrs.

Ive posted it just for reference btw. And also found the images owner - lano78.

:slight_smile:
Rodrigo. [import]uid: 89165 topic_id: 19823 reply_id: 76985[/import]

Nice Lano - do you have that on your website or the like? [import]uid: 52491 topic_id: 19823 reply_id: 76988[/import]

Well, to cut the story short Peach…
I made the iphone in illustrator to make demo ui layouts for client apps but then I wrote an article to get some content on my site after I had a server db crash and that image was in the article to illustrate the x/y system. [import]uid: 13560 topic_id: 19823 reply_id: 77299[/import]

Nice - what is your website? Is it listed on learningcorona.com? :slight_smile: [import]uid: 52491 topic_id: 19823 reply_id: 77484[/import]