Jibble

Author Topic: Doubleclick on open doors instantly[solved]  (Read 103 times)

Doubleclick on open doors instantly[solved]
« on: 03 Aug 2020, 18:22 »
Hi everyone
I am Italian, I hope to write correctly.
I am using the Tumbleweed theme, I have modified and added.
Now it's how I like it but I don't like that you can enter the room without reaching the door.

Code: Adventure Game Studio
  1.   // Doubleclick on open doors changes room instantly
  2.   Verbs.VerbGuiOptions[eVerbGuiExitDoorDoubleclick] = true;
  3.  

Even changing this value I don't solve
thanks
« Last Edit: 08 Aug 2020, 17:01 by zeta_san »

Re: Doubleclick on open doors instantly
« Reply #1 on: 03 Aug 2020, 19:30 »
Unfortunately, the template in the first room's script doesn't contain the wrapper to make the player character reach the clicked area first.

What you're supposed to do is
Code: Adventure Game Studio
  1. function oDoor_AnyClick() {
  2.  
  3.   // walk to door first
  4.   if (Verbs.MovePlayer(170, 134)) {
  5.  
  6.     // verb blocks in here
  7.     if(Verbs.UsedAction(eGA_Use)) {
  8.       // ...
  9.     }
  10.  
  11.   }
  12. }

This way the player will walk to the stated coordinates without blocking the game, and the commands for the verb will only run if they actually reach the door.
Fail at Floaty Rog' now!  still having to deal with what games are going through

Re: Doubleclick on open doors instantly
« Reply #2 on: 04 Aug 2020, 06:48 »
thank you, I thought about it immediately after posting. I always use that solution for objects and hotspots

thanks