Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | SatinOregano503 |
Hi!
I’am making a simple game in godot and i got new problem that i can’t afford.
In my scene i have 6 enemy’s and 1 player.
When player hit enemy with collision then enemy taking damage. Problem is that there is only one enemy taking damage on entire map, if i change his node to scene, nobody taking damage.
If you can help me with code a little i will appreciate it.
Can you show the code for enemy damage? This can help to identify the problem.
Bubu | 2021-04-18 13:12
The damage for enemy is in image https://i.imgur.com/s9bDR4Y.png.
Basic of this = when collision enter enemy raycast, healthbar value dropping down.
This work only on one enemy, not duplicated and didn’t work when enemy is splitted to scene.
SatinOregano503 | 2021-04-18 13:41