Hi,
I am trying to set up hotspot detection based on the player's vicinity.
My game is a point-and-click type.
Currently, when the player is near a hotspot, it only becomes visible if I hover the mouse over it.
What I want is for the hotspot to automatically appear when the player is nearby, similar to direct mode.
Is there a way to set up this behavior?
Thanks in advance,
Fred
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments
Welcome to the community, @gurreth.
When in point-and-click mode, and using player-vicinity detection, nearby Hotspots will highlight automatically - but it's still required for the user to point-and-click the Hotspots as they do the NavMesh.
Hotspot highlighting requires a Highlight component to be added and assigned to the Hotspot component. It doesn't need to physically affect the Hotspot's renderer - you can opt instead to have an icon show up instead. To do this, go to the Settings Manager's "Hotspots" panel and set Display Hotspot icons to Only When Highlighting. You'll then be able to configure the icon that shows up.
Though, is your preference instead to have the Hotspot's label show up instead of an icon at this time?
OK, thanks @ChrisIceBox ! Effectively, it works when I add the highlight component.
So, when I am close to the hotspot, I see the icon I set up, but not its label. The label only appears when the mouse is on it.
Is it possible to have the label show up when the player is close?
I want a way to manage hotspots on both touch screens and with a mouse. So I thought having the label show up when the player is close would be a good way to handle it.
This script on the AC wiki ought to handle it:
https://adventure-creator.fandom.com/wiki/Simultaneous_Hotspot_labels
Thanks ! Will check it.