Hey,
I want my app to show a button when label.text is 100.
That's how my game works:
you have to kill mosquitos by tapping them, I made mosquitos appear randomly and every time they disappear (no matter if you killed them or not) the label value increase of 1. I don't want the game to be infinite, I want that when label.text = 100 a button appear and by clicking it you can see the result.
The code should be:
If lblscore = 100 then
(all labels/mosquitos disappear)
(all timers stop)
btnresult.visible = true
btnresult.enabled = true
End if
I didn't write all the labels and timers name because it would make this complicate.
My question is: in which routine should I write the code in? I have no idea...
Maybe I should have used edittext... but I prefer to keep label if possible now that I've written a good part of the code
I want my app to show a button when label.text is 100.
That's how my game works:
you have to kill mosquitos by tapping them, I made mosquitos appear randomly and every time they disappear (no matter if you killed them or not) the label value increase of 1. I don't want the game to be infinite, I want that when label.text = 100 a button appear and by clicking it you can see the result.
The code should be:
If lblscore = 100 then
(all labels/mosquitos disappear)
(all timers stop)
btnresult.visible = true
btnresult.enabled = true
End if
I didn't write all the labels and timers name because it would make this complicate.
My question is: in which routine should I write the code in? I have no idea...
Maybe I should have used edittext... but I prefer to keep label if possible now that I've written a good part of the code
Last edited: