Forum rules - please read before posting.

How to ignore left-click on hotspot without use interaction?

Hi,

I have hotspots with only examine interaction and when i left-click it i want the character to move to point of click as there is no hotspot. On right-click on hotspot it starts examine interaction but on left-click it does nothing. How this appearance can be changed?

Thanks!

Comments

  • Welcome to the community, @apoderechin.

    It's not possible currently, but I'll look into it for you.
  • Why don't you just assign an action when using that hotspot that moves the character into the hotspot?

    It's simple and will work for sure.

    Cheers
  • edited January 2018
    On some scenes there will be 2d platformer style camera. And some background hotspots can take a lot of place and precise movement would be difficult because of this. For example windows on screenshot below are hotspots with only examine actions.
    image

  • edited January 2018
    After digging some code i found place where i can fix this) In file PlayerMovement.cs i have changed line 837 

    from 
    if (( ... && !KickStarter.playerInteraction.IsMouseOverHotspot () && ...)
    to
    if (( ... && !IsMouseOverActiveHotspot() && ...)

    and code for method IsMouseOverActiveHotspot()

    private bool IsMouseOverActiveHotspot()  
    {
    return KickStarter.playerInteraction.IsMouseOverHotspot() && 
    KickStarter.playerInteraction.GetActiveHotspot().HasContextUse();
    }

    But im not sure that this solution will not breaks something else. Is it safe or there is a better way?




  • Yes, and I'll be adding it in the next release.
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.