what should i use, change or constrain attribute?
i set hero game.health.attribute=10
so on a heart image i set to replicate x game.health.att so this makes the heart to appear 10 times, so i have a rule when hero collides with enemy to change health.att to health-1
so i should get 1 heart less, but sometimes i get 2 less, so in this case how i should add the rule
to change attribute health-1
or constrain attribute health-1?
so on a heart image i set to replicate x game.health.att so this makes the heart to appear 10 times, so i have a rule when hero collides with enemy to change health.att to health-1
so i should get 1 heart less, but sometimes i get 2 less, so in this case how i should add the rule
to change attribute health-1
or constrain attribute health-1?
Comments
Let's see what the Chefs say.
Maybe your colliding with 2 enemies at once or something causing it to subtract twice