We don’t make Lua Glider and are not responsible for the samples they include.
Rob
We don’t make Lua Glider and are not responsible for the samples they include.
Rob
Hi @Rob okay but what about the display command as Lua Glider is pointing at the path to the Corona SDK and this surely is where it is getting the libraries from ?
Thanks
TimCS
I don’t know where Lua glider is getting their stuff from. If you’re using code completion, then the api call should be right regardless. X and Y are X and Y. You just have to understand the what the values mean.
Is anyone here using Corona SDK in a machine running El Capitan?
Yep. I am and everything seems to work, though I did have to reinstall Java.
Actually I should say almost everything. Is anyone else having trouble opening remote webpages in a webview on iOS post-upgrade? I’m using daily build 2015.2730 and Xcode 7.0.1. The webpage’s grey background appears but nothing loads. Local HTML files render properly.
Hi Rob I have just used TextWrangler and ran it with the display.newText(“Hello World!”, 0, 0, native.systemFont, 16); code again and this is doing the same as Lua Glider in that the worlds Hello Word are only showing as Word with the W not all on screen. From my understanding TextWrangler uses the Corona SDK libraries is this correct as when I went to choose to open an editor from Corona SDK this is what was opened
Any thoughts on why it is doing this as I downloaded the latest public release only the other day.
This display code came from this page : http://code.tutsplus.com/tutorials/getting-started-with-lua-and-the-corona-sdk–mobile-21457
Thanks
TimCS
@corona520 - That code is setting the X and Y to 0, and I seem to remember that in Graphics 2.0, newText changed from defaulting to a left justification to centre.
So to get the text to line up with the left side of the screen, you need to do:
[lua]
local t = display.newText(“Hello World!”, 0, 0, native.systemFont, 16)
t.anchorX = 0 – this is a value from 0 to 1. 0 = left, 0.5 = centre, 1 = right.
[/lua]
All this has nothing to with the El Capitan upgrade, just out-of-date tutorial code.
Thank you for clearing this up and explaining this. Glad it was not down to the OS. Just a shame about Lua Glider not having up to date examples that are built into their interface.
Thanks
TimCS
I guess I wasn’t very clear in my first post.
0, 0 is the top left corner of the screen. If you center a display object there, the top half will be off screen, the bottom half will be on. The left half will be off screen the right half will be on. The net result is that only the bottom right quadrant of the object will be on screen. Change the 0, 0 to something reasonable… or follow Nick’s suggestion and change the object’s anchor so that X and Y reference the top left of the object instead of the center.
Rob
No not your fault my misunderstanding still new to Corona and trying to learn so sorry for that.
Thanks
TimCS
So is it safe to run on OSX El Capitan?
You will need to re-install Java 6, which Apple removes with each update. But beyond that I think everything else is good.
Rob
In order to create Android APK files with Corona in El Capitan, you must first upgrade your version of Java with Apple’s update located at: https://support.apple.com/kb/DL1572?locale=en_US
A shout-out to the Corona Team - nice work with iOS 9.1 support - I’m using XCode Version 7.1 (7B91b) with the latest Corona Build 2753 and so far, so good. I’ve also used Apple’s Application Loader Version 3.3 (868) to upload the IPA to iTunes Connect.
For the record: I’m running El Capitan and Corona just fine on my 2010 MacBook Pro.