Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | ComLarsic |
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){
GetParent().AddChild(weapon.Duplicate());
}
}
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?