I've seen a system where an exclamation mark appears above an actor's head whenever they look at an object you can interact with. Specifically in the games Misao & Mad Father for Steam.
I've tried to look up a way to do this because I want to add this to my game but I can't find anything helpful... does anyone know how to do something like this?
Exclamation Mark Above Actor to Signify Interaction?
● ARCHIVED · READ-ONLY
-
-
On page 2 of event commands, use the "Show Balloon Icon" command.
-
Create an event on the item that you want the character to interact with. On the 2nd page when creating the event there will be a list called "Character" There you can choose "Show Balloon Icon" command and set it to where the balloon appears over the event (in terms another character) or the player itself
-
That isn't what I meant, I mean that an icon appears over the actor's head whenever you look at an interactible object, not interact with it, like when you face it, but only when you face in the direction of it.
-
Oh, then what I would probably do is use a region script and map regions beside the object. Then have it show the icon when you are on that region.
-
There a dozens of ways to do this, each having different advantages and disadvantages.
The simplest one would be to use two different sprites, one with and one without the exclamation mark included above the sprite figure, and then just switch between the sprites when you switch event pages.
Disadvantage here is the larger number of files and the work on each sprite... -
That would still require the player to interact with it.
You might also look at plugins that are meant to have the player "seen" by an enemy. I think they are called a line of site script or something? That might work, if you treat the object as the enemy in this case.