A "problem" with creating a Timer..
Hello
I created a timer, and people have to push on 80 bubblesbefore 60 seconds. If you don't get it, I know how to splash screen saying "Game over", but If you get it, I dont know how to splash something like "you win" when you push the last bubble.
Help, thanks
I created a timer, and people have to push on 80 bubblesbefore 60 seconds. If you don't get it, I know how to splash screen saying "Game over", but If you get it, I dont know how to splash something like "you win" when you push the last bubble.
Help, thanks
Answers
whenever the actors touches a bubble have this
rule:
when actors receives touch is pressed
change attribute game.bubblecount to game.bubblecount+1
now somewhere else put this rule
rule:
when attribute game.bubblecount = 80
change attribute game.youwin to true
first attribute name is bubblecount - type is integer
second attribute name is youwin - type is boolean
whenever the actors touches a bubble have this
inside bubble actor have this:
when actor receives touch is pressed
change attribute bubblecount to bubblecount+1
have another actor with this rule inside
when attribute bubblecount = 80
change attribute youwin to true
when attribute bubblecount = 80
change attribute youwin to true
needs to be this
when attribute bubblecount ≥ 80
change attribute youwin to true