Hi All,
In my most recent game, I'm starting to use containers for more than one object for the first time. As such, I'm having some issues with getting them to behave correctly.
I've got an angle checker for angle between enemies and the player character. Depending on the angle, the enemy will move in a specified location. The reason I'm doing this instead of just having the enemies track the player directly and move at whichever angle is most direct, is because I want to make them move as if they are on a track, IE, just at right angles. This method works brilliantly for one instance, but whenever I instantiate more enemies, they SOMETIMES don't move at all, for seemingly no reason.
Also, I have a private variable for health, and it isn't acting as it should. Instead of each enemy having 2 health, the enemies collectively have 2 health. I may be doing something glaringly wrong, but I can't see what the issue is if I am <_>
To summarize, my issues are:
Oddly behaving enemies when there is more than one instance of them.
Oddly behaving health variable.
Cap file: http://files.me.com/steven.foskett/scml4y
Thanks!