I am trying to display the final value of the timer.count but I am getting an error something like this.Please anybody figure it out what the problem is?
Runtime error:bad argument #1 to '\_newText'<string expected got nil><br><br>local t = display.newText( "0", 115, 105, 160 )<br>t:setTextColor( 0, 0, 0 )<br>function t:timer( event )<br> count = event.count<br> self.text = count<br> if count >= 20 then<br> timer.cancel( event.source )<br>local num=count<br> end<br>end<br><br>timer.performWithDelay( 500, t, 50 )<br><br>local ti = display.newText( num, 100, 100, 160 )<br>ti:setTextColor( 0, 0, 0 )<br><br>
[import]uid: 82446 topic_id: 17054 reply_id: 317054[/import]