Forum rules - please read before posting.

walks normally when clicking on a hotspot

Hello, is it possible to make the character walk normally when clicking on a hotspot, just like when you click on any part of the navmesh? In my scenes, I have many hotspots placed on walls and floors, and the player can't normally click on those areas to move. Do I have any options? On the other hand, I've modified the game so you can move with the left button and show the action menu with the right button. Best regards and thanks in advance.

Comments

  • What modifications have you made, and what are your Settings Manager's Interface options set to? If you can share screenshots, I can attempt a recreation.

  • The idea would be that the character, by default, always walks toward the hotspot when you click on it, allowing for better mobility for the player. In many point-and-click adventure games, when you click on a hotspot, the character walks toward that position on the screen, regardless of whether you want to interact with it or not.

    The issue can be verified In the AC demo scene (the park demo with the tree, the worm, and the bench to sit on). The character can't walk towards a hotspot because the mouse click is captured by the hotspot itself. For example: you can move around the scene if you click on the tree, but not if you click on the bench.

    If this behavior is not supported by AC, what recommendations would you give me to modify the engine's code?

    My settings manager's interface: https://drive.google.com/file/d/1bcXqHpkhEjJNxbi94uLhZaBxAuS_GW04/view?usp=sharing

    Regarding the modifications, they are the ones you suggested in the forum: https://adventurecreator.org/forum/discussion/10266/right-click-for-interaction

  • Above:

    axisName = "InteractionB";
    

    Insert:

    if (Input.GetButtonDown ("InteractionA") || Input.GetMouseButtonDown (0))
    {
        ProcessPointAndClick (KickStarter.playerInput.GetMousePosition (), false);
    }
    
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.