0 votes

So I've been trying to get my character (player.gd) to interact with an object, while in it's hitbox, Not when area is entered. I've tried to work around it, with my limit knowledge. But it hasn't been successful.

I have no idea what is causing the problem, nor how to fix it. So i'll just link the entire project

in Engine by (275 points)
edited by

Try to make a small project to test features where you have problems (I have a project with dozens of small test scenes) so you can isolate the problem and identify it, that ways others may be able to give more help.

1 Answer

0 votes
Best answer

Okay thanks to Bullet Shower demo. (Probably should look at those more often)

What I should have been asking is, how do I activate a script when enter a area, then I activate another when I exit. Since I was able to activate a function when I entered a object, but it would not stop going when I exited an object.

How I solved the issue? I selected my area collision node in player, and then signaled player.gd when I entered an object, and exited. Thus giving me power to activate a script while colliding(Until I exited the object).

by (275 points)
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.