All display objects, are now by default referenced from their center, so creating a rectangle: display.newRect(0,0,100,100) will center a 100,100 rectangle on 0,0. The display.newText() has the same behavior.
Rob
All display objects, are now by default referenced from their center, so creating a rectangle: display.newRect(0,0,100,100) will center a 100,100 rectangle on 0,0. The display.newText() has the same behavior.
Rob
Maybe you should update your beginner tutorials to reflect this, its kinda confusing for a newbie like me when its looking all wrong
Can you provide the link to the tutorial that is wrong?
Thanks
Rob
Hi Rob,
Sure: http://docs.coronalabs.com/guide/start/helloWorld/index.html this one need some anchor info on it, or the text will be half off screen.
I think you caught this in the middle of us updating. I just looked at the docs and it isn’t positioning at 0,0, but 50,50.
Just as a side note, while we are combing our documentation, there are plenty of blogs, tutorials, videos, books and such done by 3rd party providers who we can’t control how fast they update their tutorials. So the best we can do is to try and educate people that there is a difference and be able to react accordingly when viewing older samples.
Rob
Hi Rob,
My mistake, i wasn’t using 0,0 but 50,50 when i first tried it, and that made my " hello world " text wrap off the screen on my simulator screen. If fact, if i copy the code
local myTextObject = display.newText( "Hello World!", 50, 50, "Arial", 60 )
and run it, all i see on my simulator screen is “o world!”
I’m only mentioning this as i believe a newbie tutorial meant as a quick introduction, ought to be flawless, so it won’t scare newbies off
Okay, I’ll get it fixed.
Rob