Score Help

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]

You probably want to do:

...  
score = score + 1  
showScore.text = score  

[import]uid: 9659 topic_id: 5388 reply_id: 18016[/import]

i tried that it doesnt work for some reason, it messes up my collision,

Any other ideas [import]uid: 11559 topic_id: 5388 reply_id: 18019[/import]

Messes up your collision? What does that mean? [import]uid: 12108 topic_id: 5388 reply_id: 18028[/import]

I got it fixed tahnks [import]uid: 11559 topic_id: 5388 reply_id: 18186[/import]