|Topic was automatically imported from the old Question2Answer platform.
I have a
BossTrigger node that I’m using to trigger introductory animations in my
Boss nodes. The trigger is essentially just an
Area2D. In my boss room, I want to place a
BossTrigger and associate that trigger with a
Boss that is also in that room.
Currently, in my
BossTrigger script, I have
export(NodePath) var associated_boss
I then manually assign my boss to the trigger in the editor.
Unfortunately, when my player enters the trigger and my
on_trigger_entered() function is called, I’m getting an error that there’s no index ‘animation_player’ on base ‘NodePath’. I’m certain my boss has an variable called
animation_player, so I’m not sure what the issue could be.