Using Composer, if I set up a variable as local in my Forward Declarations do I also have to set it up as a local variable in scene create to prevent it from being a global variable?
Would setting up the rock in the example below be the correct way to set it up and remove it?
Forward Declarations:
local rock
Scene Create:
rock=display.newImage(“Images/rock3.png”)
sceneGroup:insert(rock)
rock.isVisible = true
rock.x=500; rock.y=230
Scene Destroy:
rock: removeSelf()
rock = nil
Thanks,
Lori
