Taking Damage
Snoop1000
Member Posts: 5
Is there a way to cause an actor to take damage without the use of a table?
I was going to try having an actor called Projectile have a rule that basically says, "When Projectile collides with Player1, subtract 1 from attribute Player1Health." Then, "When Player1Health equals zero, destroy Player1." I can't figure out how to do it without a table, as the example games suggest.
Comments
Player1Health can be a regular game attribute. Then you'd subtract or add as normal.
My GameSalad Academy Courses! ◦ Check out my quality templates! ◦ Add me on Skype: braydon_sfx
@Snoop1000 make it an integer attribute such as game.PlayerHealth .
My Blog / App Store / Google Play