Hello! I’ve been developing in Corona for a little bit but still have a few questions.
1. If you define a local variable at the very beginning of your code, isn’t that sort of a global variable since it can apply to all functions within that .lua file? How does declaring it locally there help? Does it have to do with memory leakage?
2. I’ve noticed that I can define a characteristic (I don’t know the proper terminology) for a display object. For example, I can have bubble.xvelocity even though that xvelocity isn’t an intrinsic property of any display object. However, when I try to access this in a different function after having passed bubble into that function, I fail to be able to access it. Should I be able to access it or should only the intrinsic properties of display objects be able to be accessed?
Thanks!
