Hi all,
In my game, I want to have this function, that when an enemy shoots a bullet, if that bullet overlaps with a certain object, the enemy that shot this bullet receives the damage of the bullet. I tried to achieve this in the following form (actions are marked with "--->"):
Alterable value "shoot interval" of object "enemy1" = 0
---> Create object "bullet1" at action point of object "enemy1"
---> Set alterable value "who shot" of object "bullet1" to the fixed value of object "enemy1"
Object "bullet1" is overlapping object "returndamage"
+ Fixed value of object "enemy1" = alterable value "who shot" of object "bullet1"
---> Subtract 50 from alterable value "health" of object "enemy1"
---> Destroy object "bullet1"
Unfortunately, my idea did not work and nothing happens when the bullet overlaps with the "returndamage" object. Could anyone please help me with this matter?