How do you properly note your Global Variables in your main.lua file? I have two of them
_G.numberOne = numberFieldOne.text
_G.numberFive = numberFieldFive.text
I just didn’t know if you do local function or something and then where you locate in the file. This is my main now.
[lua]display.setStatusBar (display.HiddenStatusBar)
–> Hides the status bar
local director = require (“director”)
–> Imports director
local mainGroup = display.newGroup()
–> Creates a main group
local function main()
–> Adds main function
mainGroup:insert(director.directorView)
–> Adds the group from director
director:changeScene(“loadtitlescreen”)
–> Change the scene, no effects
return true
end
main()
–> Starts our app[/lua] [import]uid: 72372 topic_id: 13736 reply_id: 313736[/import]