This site is currently in read-only mode during migration to a new platform.
You cannot post questions, answers or comments, as they would be lost during the migration otherwise.
0 votes

my issue is when i try to kiil one enemy all enemys die ;

when enter attack is true is when they enter an erea2d called attack ;and it is so close from the player it is as far as its weapon .
what hapend is wen i attack a random enemey it get into attack area2d and it call signal onattackbodyshapeentered then when i pres the attack botton it call the signal _onplayerhit then it reduces health until it hit 0 then an if methud call queuefree() .
i think if i hit a player the health reduces on all enemy code and thats why they all die .
what i want from you is how can i attack spesifec enemy and only he die

the project :

https://drive.google.com/open?id=1Og_M7c6-DKPfKJ36awsa_6ohmD4_6Xr4

in Engine by (71 points)

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 Frequently asked questions and 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 [email protected] with your username.