I’m new to Corona and have 2 general questions.
- What’s the difference between declaring a variable with and without the ‘local’ keyword? I have seen both in code examples:
local myVar1 = 0
myVar2 = 0
- I want to put some functions and variable declarations, especially those that don’t change frequently, into a different source file so that main.lua doesn’t get unmanageable. For example, I would like to have a myFunctions.lua and myVariableConstants.lua. Can this be done? [import]uid: 41809 topic_id: 16983 reply_id: 316983[/import]

[import]uid: 41809 topic_id: 16983 reply_id: 63748[/import]