Objects not seeing top left of screen as 0,0

Hello,

  I’m Kes and this is my first of probably many posts on the forums as I attempt to learn Lua and CoronaSDK to build business apps and games.  I’m a concept artist by trade but have taken the dive into creating my own IP’s and apps.

  My issue I’m running into with Sublime editor and simulator currently is when I create a new object like newRect or newtext at say

("Hello World", 50, 50, "Arial", 60)  

 like in the tutorial on corona’s site, however my text is appearing off screen.

  It’s almost as if it’s reading the middle of “Hello World” as the start point for 0,0.  So it instead puts it way into the corner.  I also see in tutorials that 50, 50 is enough to move it into view.  Where as it seems like I need 200-300 just to move it into view.  Is it possible my simulator is set to a higher resolution or something causing a higher amount to move the same distance?  I’m also using View as Droid, on the simulator though it doesn’t seem to matter which view I have they all are the same with the text half off the screen.

  Thanks in advance for any responses and Look forward to becoming a part of the CoronaSDK community!

   - Kes

Starting with Build 2076, your coordinates of 50, 50 is the middle of the screen.  In the old Graphics 1 based engines, the API’s for display.newRect, display.newCircle and such were inconsistent on how we handled the X, Y passed in.  Some treated it as top left, others as center.  As of build 2076, all X, Y’s passed in are now center of the object.  There are still a couple of exceptions like ads but anything display.* will now be centered.

Rob.

Starting with Build 2076, your coordinates of 50, 50 is the middle of the screen.  In the old Graphics 1 based engines, the API’s for display.newRect, display.newCircle and such were inconsistent on how we handled the X, Y passed in.  Some treated it as top left, others as center.  As of build 2076, all X, Y’s passed in are now center of the object.  There are still a couple of exceptions like ads but anything display.* will now be centered.

Rob.