0 votes

I've been working on a small game to help me practice designing a top down shooter.
I have a small room set up with an enemy and a player. they're both about 128p apart when the level starts.
The enemy has two arms (area 2Ds and collision shapes), that when the player enters them, will queue_free() the player. My issue is, when the level begins, the player gets deleted immediately. I'm not sure where I'm going wrong, and yes, the collision shapes and area 2Ds are correctly proportioned.
I've looked everywhere and haven't found any solutions. Here's the code: The code I used

Link to the Image if it doesn't work.

in Engine by (103 points)

Nvm, I'm dumb. I just had to queue_free() when the player class was touching it, not whenever. The code

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 webmaster@godotengine.org with your username.