Hello again corona and app devs. I’m on a quest to fill in our level select map, with images based on progress, Basically, we’re going to have 3 states a level can be in, “played” (but can be re-played), “Next level”, and “can’t play” I had it set to change colors based on those categories, but was then told we may be using different images instead, so now I need to re-work it
so, when initiating the points on the map, I added this:
local paint = {type = "image", filename ="img/character.png" } local closedPaint = {type="image", filename = "img/close.png"} local played = {type = "image", filename = "img/characterGreen.png" } circ = display.newCircle(0,0,rad\*1.7) circ.fill = paint
as my fill images. The logic to switch in part, looks like this:
elseif(self.index\>currLoc)then circ.fill = closedPaint --self.circ = display.newImage("img/close.png"); group.isVisible = true --self.isTouchEnabled = true group.xScale = config.xScale or self.xScaleInit group.yScale = config.yScale or self.yScaleInit end
The problem is, it doesn’t switch. If I change circ.fill up top, than all of the circles will have that image, but changing them within the logic, isn’t doing anything. Any advice?