Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Stranga on Mon 03/04/2017 05:17:09

Title: SOLVED:Look function auto starts after Interact function.
Post by: Stranga on Mon 03/04/2017 05:17:09
Hello everyone,

I can't seem to figure out why this is happening. Every time I use the Interact function (Left-click) the look function (right-click) automatically plays after the interact function is complete. I am using the TwoClickHandler script. The Look function works fine on its own.

Edit: Turns out I had my pen and touch tablet causing the problem.
New Edit: That wasn't the problem. It started again.
Title: Re: Look function auto starts after Interact function.
Post by: Snarky on Wed 05/04/2017 07:35:15
I mean, we'd have to get a look at your code, but this sounds like a typical "forgetting the 'else' part of and 'else-if' statement" problem.
Title: Re: Look function auto starts after Interact function.
Post by: Stranga on Wed 05/04/2017 07:59:55
Thanks for the reply. I may know where the may be but It is happening to everything in the entire game. I will have a look through my code again.
Title: Re: Look function auto starts after Interact function.
Post by: Stranga on Wed 05/04/2017 08:57:58
There was a fault in my global script and my mouse handling script. I had it processing he same functions twice. Finally it's working!