I'm sorry if this is a very basic question, but I cannot seem to figure this one out.
I'm making a platform game that generates levels as you go along. I have spikes that emit a 'get_hit' signal. The game constantly instances these spikes.
I want the game to understand that if the player hits the spikes, the player should die.
Do I connect the 'get hit' signal to the player, or the spikes? I tried the former but it didn't work. I suspect the latter, because that worked for my coin signals. If the latter, how do I run a function in the player scene if the signal is connected to the spikes and not the player? I didn't experience this last problem with the coins as I could simply run the functions in the coin scene.