I have score code working ,but every time i picked up item it should add + 1 to score, it does, but score object wont change the number (refresh it lelf to show new score) Can any one help pls
[code]
– Colect object and add score + 1
local function pickedup (self, event)
if (event.phase == “began”) or (gameisActive == false) then
media.playSound(“complite.caf”)
score = score + 1
pickup:removeSelf()
end
end
pickup.collision = pickedup
pickup:addEventListener(“collision”, pickup)
local showScore = display.newText(score, 10, 450)
– Show score
showScore:setTextColor(255, 105, 255)
showScore.size = 25
showScore.rotation = -90
showScore:toFront()
[/code] [import]uid: 11559 topic_id: 5388 reply_id: 305388[/import]