If I define a variable as local in forward declarations do I also need to set it as a local variable in Scene Create in order for it not to be a global variable? In otherwords, if I set it up as in Example 2 below would that make rock a global variable since local is not in front of rock in Scene Create?
Example 1:
Forward Declarations
local rock
SCENE CREATE
local rock = display.newImage(“rock.png”)
Example 2:
Forward Declarations
local rock
SCENE CREATE
rock = display.newImage(“rock.png”)
Thanks
Lori