Minus button not stopping at 0
I have a scoreboard. I have a + and a - button. for the minus button this is the coding
actor on touch release change attr game.hole1 to game.hole1-1
attribute game.hole1 < 1 change attr game.hole1 to 0
Im trying to make the scoreboard stop at 0 when it reaches 0 if pressed again still say 0 not -1 -2 -3 -4
why isnt this working?
actor on touch release change attr game.hole1 to game.hole1-1
attribute game.hole1 < 1 change attr game.hole1 to 0
Im trying to make the scoreboard stop at 0 when it reaches 0 if pressed again still say 0 not -1 -2 -3 -4
why isnt this working?
Comments
http://mynameisace.com/files/Help_for_JeffNichols.gameproj.zip
Ace
try :
attribute game.hole1 < 0 change attr game.hole1 to 0
When touch is pressed
and Attribute game.score > 0
--Change attribute game.score to game.score-1
This way your not using resources constantly changing the score back to 0 in stead the button stops working when you reach zero.
___________________________________________________________________________________
Project Help from Tenrdrmer Click Here
GS BubbleBall Template HERE!!
Stacks Level Selection Template HERE!!
Expanding Option Menu Template HERE!!
Tenrdrmer's Menu # 3 HERE!!
Menu #4 - Level Banners HERE!!
AppSolute Entertainment on Facebook
AppSolute Entertainment on iTunes
Ace