Hello, I'm a newbie and I'm having this huge problem with this little piece of code, I started using godot by 2 days so I can't understand the other threads results, but It's maybe a common problem, the code is this:
if $RayCast2D.is_colliding():
var collider = $RayCast2D.get_collider()
if Input.is_key_pressed(KEY_SPACE) and collider.name == "Pokeball":
collider.queque_free()
The character just have to hit a pokeball with a RayCast2D and when spacebar is pressed the Pokeball should disappear
but when I press the spacebar I have this error: 'Invalid call. Nonexistent function 'queque_free' in base 'StaticBody2D' (StaticBody2D is the Pokeball)