I have some code that makes it so that when the user clicks a up button the number belows it goes up in value from 1 but when the function displays the number value, it overlaps the next one and so on.
looks kinda like this:
[lua]local numberValue = 0
– Im using ui.lua so for the button, onPress = upButton1press
local upButton1press = function( event )
numberValue = numberValue + 1
local numberValueDisplay = display.newText(numberValue , 5, 70, native.systemFont, 50 )
numberValue:setTextColor( 200,200,200 )
end
– It displays 1 2 3 4 5 all at the same time right over each other. [import]uid: 54001 topic_id: 10345 reply_id: 310345[/import]
[import]uid: 12482 topic_id: 10345 reply_id: 37754[/import]