the attribute is not changing?

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

  • jsorr2jsorr2 Member Posts: 279

    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

  • SocksSocks London, UK.Member Posts: 12,822

    @circleline said:
    If health = health-1 then change attribute 'X' to 0

    Try:

    If health = -1 (rather than if health = health -1)

  • circlelinecircleline Member, PRO Posts: 37

    It doesn't work..Let me restate my problem..
    If 'health' is decreased by 1 then change attribute ' x' to 0.

  • UtopianGamesUtopianGames Member Posts: 5,692
    edited November 2014

    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.

Sign In or Register to comment.