the attribute is not changing?
circleline
Member, PRO Posts: 37
So..IF 'x' hits 'y' change attribute health to health-1.
Now the problem.
If health = health-1 then change attribute 'X' to 0.
But then 'X' is not being changed to 0. Why?
Comments
how can health = health-1? That's like saying if 3 = 2 then do this. It doesnt work like you think. You'd have to say, if health = 0 then x = 0
Try:
If health = -1 (rather than if health = health -1)
It doesn't work..Let me restate my problem..
If 'health' is decreased by 1 then change attribute ' x' to 0.
Do a display text to see it working or not working in your case as it might help you see whats going wrong.
You could also try doing if health ≤ (less or equal too) -1 change X to 0.
Darren.