I have "portal" hotspots set up as "Single 'Use' so if I click on them, my character walks to the marker then we change scenes. I'd like the option to double click on the hotspot and immediately change scenes in case the player doesn't want to watch Duke slowly walk for 5 minutes over to the door before changing scenes.
Is there a way to set up a different action list if I double click rather than single click?
Comments
I'm ok with what surfinsocks just proposed, having a double click interaction on each hotspot. Would give the possibility to make this instant switch, but also to do anything else. If nothing set for it, then the default run actoin would be done.
It's really useful in ddaedalic studio games when you have to return a lot of times to the same scene and you don't want to wait again for the character to cross the scene.
It should be possible to have a custom script detect a double-click and do this manually instead. Have something like this run in an Update() function:
if (AC.KickStarter.playerInput.GetMouseState () == MouseState.DoubleClick)
{
// Double-clicked
if (AC.KickStarter.playerInteraction.GetHotspotMovingTo () == myStairsHotspot)
{
// Already moving to the stairs hotspot
AC.KickStarter.playerInteraction.StopMovingToHotspot ();
myOtherCutscene.Interact ();
}
}