Hi, I'm new to Godot and I'm trying to figure out get_tree().call_group
It seems to work just fine in some of my scripts where the player gets hurt or collects coins but in another script I try to call it and I get nothing. I don't think it's calling the functions at all but I really can't figure out why.
from my player.gd (works):
get_tree().call_group("Gamestate", "end_game")
from hazards.gd (works):
get_tree().call_group("Gamestate", "hurt")
from coin.gd (works):
get_tree().call_group("Gamestate", "collect_coins")
from GameOver.gd (does not work):
get_tree().call_group("Gamestate", "get_level")
I double, triple checked the spelling of the function. I don't think it's getting to the function because nothing happens, not even an error. I wrote a simple print statement just to see if it got there but nothing was printed. I'm positive that the games gets to the call_group command though.
I'm wondering if there is a situation where the call_group will not work.
Thanks for any help!