Hi,
if I have a code like this:
local function createImage(params) local img = display.newImageRect(params.path, params.w, params.h) params.group:insert(img) return img end function scene:create(event) local img = createImage({group:self.view, path="bullet.png", w=50, h=50}) end
Need I to set nil the local img (inside scene:create function)?
Or lua set to nil this variables as is an “local” variable inside scene:create function?
Thank you