Forum rules - please read before posting.

How to move the Hotspot icon above the hotspot object

Hey, I was trying to make the hotspot interaction icon appear above the hotspot object, but it keeps showing in the centre of the screen.

Screenshot: https://prnt.sc/OekJM-HwktYF

The Boat is the object, and I want the icon to appear above it.

Thank you,

Comments

  • What components are attached to the Hotspot's GameObject?

    AC will try to "guess" the centre of a Hotspot by examining its collider. The "Centre-point override" field, as @snan points out, can be used to override this if it's wrong, however.

  • Hi,
    Box Collider 2d and Hotspot components are attached to the hotspot.

  • Looks like it should appear in the centre, then. What's the position of the Hotspot menu if you assign the Hotspot itself into its own Centre-point override field?

    Also bear in mind that the way the Hotspot menu positions itself is configurable. If you go to the Hotspot menu in the Menu Manager, check its Position property. To have it appear over the active Hotspot, both this field and Appear type should be set to On Hotspot.

  • I already checked the Hotspot menu but couldn't find your recommended options.

    These are my current Hotspot settings: https://prnt.sc/NBSIaBgZVIFJ

  • The Hotspot menu's properties are in the Menu Manager - not the Settings Manager.

    Select "Menu" at the top of the AC Game Editor window, and then choose "Hotspot" from the list of Menus below. That will display the properties of the Hotspot menu underneath.

    If you create a second Hotspot beside the original, does the Hotspot menu appear in exactly the same place when both are selected?

  • It appears that the hotspot icon follows the mouse cursor. If I change the input method to "Mouse and Keyboard," the hotspot icon will continue to follow the cursor.
    https://prnt.sc/hZOjSf3OEfm7

  • Then the Hotspot's "Position" setting is set to "Follow Cursor".

    Again, you can access the Hotspot's properties within the Menu Manager.

  • BikBik
    edited July 2023

    I did all the above but still, the hotspot icon doesn't show up above the hotspot. Now I have another issue: the "Hotspot Icon alpha issue."

    Cannot display correct Hotspot Icon alpha on because it has no associated Highlight object.

    I saw one of your old posts suggesting assigning a Highlight component and unchecking Auto-brighten materials, but that didn't solve the problem. This issue didn't happen before, but I think I changed something around that caused this issue. Now even your 2D Demo is having the same issue.

  • My apologies. I think there may be some confusion between us about what icon you're seeing.

    If it's not the Menu, and it's following the cursor - then what you're seeing is likely the cursor. The Cursor Manager has settings that determine what graphic the cursor changes to when hovering over a Hotspot.

    The icon in your first screenshot looks to be set to AC's "AC_Trigger" texture - where have you assigned this? In the Cursor Manager's "Hotspot cursor" panel?

    If so, this will always show where the cursor is. If you're using Keyboard Or Controller input, and not moving the mouse/cursor, then it will be in the centre of the screen by default - which could be why you're seeing this texture in the middle.

    The "Hotspot icon" feature, which is configured in the Settings Manager's "Hotspot settings" panel, is separate to this - this is a separate icon that appears over Hotspots when they are selected. Your settings are currently set to have them show their first-defined interaction icon - so you'll need to assign your intended texture(s) in the Cursor Manager's "Interaction icons" panel.

    For them to display, you will need your Hotspots to have an associated Highlight component. If your game is 2D, attaching the Highlight component to the same object as the Hotspot, and assigning it in the Hotspot's "Object to highlight" field should be enough.

    Cannot display correct Hotspot Icon alpha on because it has no associated Highlight object.

    This suggests your Hotspot(s) do not have anything assigned in their Object to highlight field. Check the Hotspot's Inspector - you'll need to assign the Highlight component in this field after adding it to the GameObject.

    If you've followed these steps, share full-screen screenshots of your Settings and Cursor Managers, as well as a typical Hotspot's full Inspector, and I'll try to spot what the issue is.

    Now even your 2D Demo is having the same issue.

    The 2D Demo doesn't make use of Hotspot icons, by default, and so its Hotspots do not have associated Highlight components. You'd need to follow the same steps above to display them.

  • Thank you for explaining everything. I confirm the problem is resolved.

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.