How to make it

Hello,
I have character actor whit 2 attributes a) life (20), b) bubble (true/false) .
If i click on it he loosing 4 life,again more 4 life and more.
When actor life down less or equally 0 , actor destroyed. All work perfect.

**Question : Now i need to add condition, if actors life should down less or equally 0 and he has bubble on true,
Life should stay on 1 but bubble should be destroyed and the only next click on it destroy actor.
How exactly i am writing it at code ? **

Thank you for help.

Comments

  • BigDaveBigDave Member Posts: 2,239

    Death rule

    If hp <= 0

     If bubble = 1
           Change hp =1
           Turn bubble = 0
     Else
         Destroy actor   
    
  • Jonatan RJonatan R Member Posts: 9

    Thank you , ill try it today :)

Sign In or Register to comment.