doubt with character suffering damage
Hi!
I am newbie in gamesalad and have a question, I'm making a game and created a character and he has 5 life. My doubt is: when you have two or more of this character on the screen, and one of them suffers an injury, everyone else gets the same damage, and end up dying while everyone was dying to just one (which actually suffered damage). How do I fix this situation? : S
Thanks in advance!
I am newbie in gamesalad and have a question, I'm making a game and created a character and he has 5 life. My doubt is: when you have two or more of this character on the screen, and one of them suffers an injury, everyone else gets the same damage, and end up dying while everyone was dying to just one (which actually suffered damage). How do I fix this situation? : S
Thanks in advance!
![:) :)](http://forums.gamesalad.com/plugins/emojiextender/emoji/twitter/smile.png)
Comments
Yes, each with its independent life. I can not put an attribute for each character because I'm doing it appears via a "Spawn Actor", so it always appears with the same attributes. : S
Help
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
self.live = 5 (integer)
rule: when > collide with enemy01
do > change Attribute> self.live to self.live-1
thanks for listening
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User