Every day for a couple of hours after school I work on a little game project that I have, but for the past couple of days I've been stuck on making one of those things that floats above an object or NPC to show you can talk to them or there is something interesting about that object
Like how in Hollow Knight there is an arrow with "Inspect" floating above things, or how in Night In The Woods an eye icon appears over things Mae talks about
What I'm thinking is a trigger box, and when the player enters the icon zooms in (one animation) and then plays a basic animation (other animation) but when the player leaves the box, no animation is played and the icon is not visible
I nearly got it to work once when only one animation played after the player entered the trigger box, but I haven't gotten further than that. I've tried a couple of different state machines generally with the actions "play animation", "visibility" and "OnTrigger2D"
Any help is greatly appreciated, thank you in advance