Having trouble with collisions, see post.
blenderartist
Member Posts: 32
I have an enemy, when it gets hit with one bullet it loses one haelth
the problem is, when it gets hit with two or more bullets at around the same time, it registers only one collision. Or it loses one health. How can I fix this?
Thanks in advance!
the problem is, when it gets hit with two or more bullets at around the same time, it registers only one collision. Or it loses one health. How can I fix this?
Thanks in advance!
Comments
_______________________________________
Game making service- http://gamesalad.com/forums/topic.php?id=21739
Or email- Skymaplegames@gmail.com
I have an enemy rule; when actor with tag overlaps or collides add -1 to health.
If i have one object that hits it, than another object hits it before the first one is destroyed, the enemy only loses 1 health.
A game attribute is a global attribute, right?
Or what I am doing wrong?
Thanks!
Except I have a lot of the same kind of enemy and if the bullet is colliding with the enemy, how do I tell the bullet to subtract health from that particular enemy?
I cant use global attributes as I would need 1 for each enemy and I plan on using too many for that.
Thanks for the idea, I could thing of a few other places where it could be used.
When overlap or collides with enemy 1 reduce health of global attribute E1
Next rule
""""". ". ". Enemy 2 " " E2
And so on
It's tedious if you have lots of enemies but accurate
I did not test this yet, so I am not sure if it would work, also that many timers may slow everything down too much.