hii…
i am working on my game on window laptop,i have some difficulties in group programming,whenever i try to insert my background image in one of the group i have created…an error occured…something like
ATTEMPT TO INDEX LOCAL ‘BACKGROUND’(A FUNCTION VALUE).
here is my code
--set display group
local backGroup=display.newGroup;
local mainGroup=display.newGroup;
local uiGroup=display.newGroup;
–loading the background
local background=display.newImageRect(backGroup,“a.png”,1024,768);
background.x=display.contentCenterX
background.y=display.contentCenterY