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?

asked Mar 19 in Engine by ComLarsic (30 points)

1 Answer

0 votes
answered Mar 19 by Zylann (26,033 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 How to use this Q&A? before posting your first questions.