0 votes

I am adding bullets to a scene, but only one at a time.

the way i am doing this right now is like so:

if (Input.IsActionJustPressed("PS_attack")){
        if(GetParent().GetNode<Node2D>("Weapon") == null){

however that it gives a lot of error messages in the terminal saying that the node cant be found (witch is what i want).

is there any way of doing this without error messages?

in Engine by (33 points)

1 Answer

0 votes
by (28,982 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.