Hi,
I really don?t understand this... I have 2 instances of an "enemy" type. There is another object that can collide with them. When they overlap (collide) the "is Hit" boolean of the enemy is set to true. When the collider object collides with both enemies at the same time something strange is happening. I have this in my enemy event-sheet:
<img src="https://dl.dropboxusercontent.com/u/4928547/construct_trouble.png" border="0" />
When I step over the action "subtract 1 from hitCount" I was expecting only ONE enemy loosing a "hit point"... the enemy whoose instance I am currently stepping through. Instead both enemies are loosing a "hit point" at the same step in the debugger. It?s like the "enemy" in the action means "all enemy instances" instead of the one instance I am currently in.
In addition to that the function "PushBack" is only called for one of the instances. I have no clue what is happening there. What am I doing wrong?
thanks