I have a function that reads:
func _on_mug_area_entered(area):
print(area)
and outputs:
mug_stop:[Area2D:1383]
But when I try to check for it with this:
func _on_mug_area_entered(area):
if area is mug_stop: # this line errors
queue_free()
I get this error:\
Parser Error: The Identifier "mug_stop" isn't declaired in the current scope.
If that's true, how come I can output the proper area to the Output window?