How to make my Actor attack.
derka6391
Member Posts: 31
Im building a defense game and I have it as a wall and monsters spawn from the ground and from the side screen and attack the wall, So i have a timer set and animation for the monster to come out of the ground and then I have another rule telling my monster to walk towards the wall otherwise attack the wall. The problem is the monster animation attacks but the health wont go down. Here is my code.
Answers
Place a Log Debugging Statement inside of the health rule and watch the Debugger window to see if the statement/expression appears. If not, figure out why that condition isn't triggering. If it does appear, post a reply here. It may be that you've typed the game.health-1 expression rather than selecting game.health from the attribute browser menu or it could be that the actor that is displaying game.health isn't doing so properly (post a screenshot of that as well).
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
it was becuase I typed the expression game.health-1. Thank you.
You're welcome!
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User