I am trying to work with custom signals. My code looks somewhat like this (abbreviated):
var collision = move_and_collide(velocity * delta)
if collision.collider.name == 'WallN':
print("Now emitting hit_walln")
I have tried connecting the signal both using the UI and using
connect("hit_walln", get_node("Main"), "_on_hit_walln"
in Bullet.gd. Both Methods show the message "Now emitting hitwalln", but only the method using the code shows the message "recieved hitwalln". I am a bit stumped by this, because I have connected other (non custom) signals using the UI in the same project before (timeout() on Timers to be exact) and those work flawlessly.
Is there a difference between those I don't see?