When I click on the objects it need to be give one but it add two , why?
[lua]
[lua]
function kor1:touch(event)
if ( kor1.fill.r == 1 and kor1.fill.g == 0 and kor1.fill.b == 0 ) then
score = score + 1
pscore.text = "Score: " … score
else
composer.gotoScene( “gameover” )
end
end
kor1:addEventListener(“touch”,kor1)
[/lua]
[/lua]