ok so I have this.
local quotetap = 30
function changet()
if tImage then tImage:removeSelf() end
if counterBlock then counterBlock:removeSelf() end
tImage = display.newImage( "images/tFaces_"..math.random(6)..".jpg", 264, 280 )
tImage.x = display.contentWidth * 0.5
tImage.y = display.contentHeight * 0.5
counter = counter + 1
counterBlock = display.newText(counter, 30, 30, native.systemFont, 25)
counterBlock.x = display.contentWidth /7 *6
counterBlock.y = display.contentHeight /10
tImage:addEventListener("tap", changet)
end
I want to add.
if (counter == quotetap) then
composer.gotoScene( "scenes.nextlevel", "fade", 500 )
end
mind you, the counter works perfectly. When add this however, i notice the friction when the counter hits 30. But it doesn't change scene like it should. After a slight pause, it just continues counting.