0 votes

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.

Links to images :
https://imgur.com/PWfTSWQ
https://imgur.com/yUAsIve
https://imgur.com/s9bDR4Y

Godot version Godot v3.2.1 - stable
in Engine by (24 points)
recategorized by

Can you show the code for enemy damage? This can help to identify the problem.

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.

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.