reducing a value by -1 seems to subtract by 4
turnstyle
Member, PRO Posts: 13
not sure what I'm doing wrong.
I simply created a button with a rule.
The rule has a timer that states: after 1 second, change attribute game.lives to game.lives -1
I start with 5 lives, after this plays I was down to only 1 life rather than 4 left.
THEN I did a test with 100 lives and sure enough it gets chipped away by 4 every second.
-thanks for any help on this
I simply created a button with a rule.
The rule has a timer that states: after 1 second, change attribute game.lives to game.lives -1
I start with 5 lives, after this plays I was down to only 1 life rather than 4 left.
THEN I did a test with 100 lives and sure enough it gets chipped away by 4 every second.
-thanks for any help on this
Comments
if the player doesn't hit the button in a certain time, then change attribute game.miss to 1
then in the lives a rule was made if attribute game.miss = 1 then subtract game.lives by 1.
same thing just instead of using a time limit to trigger a negative 1 to lives, I just triggered an either on or off state to a new attribute called "miss", then the "lives" get changed based on the miss attribute.
this my work/may not
EDIT: opps, didnt see u had already solved it