More than one collision of the same type at the same time
arltmiral
Member, PRO Posts: 11
Hey folks.
I want to have two guns in my game. The first Guns shoots one projectile and does 10 damage. The second gun fires two of these projectiles at the very same time. Each with an offset of 10 pixels.
Everything is working as expected with the one projectile gun, but it looks like only one of the projectiles in the "two projectiles gun" is is processed correctly. Although both projectiles get destroyed by the system.
Hit points are calculated in an rule inside of the enemy (on collide with tag projectile). The destruction of the projectiles is performed by a rule inside itself (on collide with tag enemy).
Any ideas?
I want to have two guns in my game. The first Guns shoots one projectile and does 10 damage. The second gun fires two of these projectiles at the very same time. Each with an offset of 10 pixels.
Everything is working as expected with the one projectile gun, but it looks like only one of the projectiles in the "two projectiles gun" is is processed correctly. Although both projectiles get destroyed by the system.
Hit points are calculated in an rule inside of the enemy (on collide with tag projectile). The destruction of the projectiles is performed by a rule inside itself (on collide with tag enemy).
Any ideas?
Comments
It's working - but I guess it's not the smartest solution in terms of performance, isn't it?
And you will need to create a new attribute for the new bullet so it will add to the count. and change the bullet count to register with the new bullet name.