slow mouse click detect

This forum is meant for requesting technical support or reporting bugs.

Moderators: time-killer-games, Vengeance66, Candle, reneuend, GM-Support

slow mouse click detect

Postby indy2 » Thu Aug 30, 2007 12:40 pm

oh yeah , i am making little puzzle with two hotspot :

one button A for repeating click = increments by 1 a global variable
( myvar)

another button, B , for testing if myvar is = 8


if myvar = 8 go to frame " good code " ( 8 click on same button A )

if myvar <> 8 then go to frame " bad code "

---------
when i test the frame with the two buttons , if my mouse click on the button A is not very slow , myvar is not like to the number of mouse click , is less. i must click with 1 second interval

why ?

best regards from italy
indy2
Member
 
Posts: 31
Joined: Thu Nov 02, 2006 3:04 pm

Postby Mystery » Thu Aug 30, 2007 3:43 pm

Indeed, I have noticed this problem aswell. I don't think that this can be changed at the moment.

Therefore if my game requires multiple clicks, I make sure that there is something that announces if the clicking was "valid", e.g. by adding a sound or change of image etc.
User avatar
Mystery
Forum Admin and Games Page admin
 
Posts: 2990
Joined: Sat Feb 04, 2006 8:12 am
Location: Switzerland

Postby indy2 » Fri Aug 31, 2007 1:44 pm

oh yes, i use the soundclick method for resolve the problem. thanks.

another question : when a local variable is destruct after use ?

is when the player go to another frames ?
is after when an hspot is clicked ?

thanks
indy2
Member
 
Posts: 31
Joined: Thu Nov 02, 2006 3:04 pm

Postby Mystery » Fri Aug 31, 2007 8:09 pm

Well, I think that GM is the best person to answer this question, but from this quote from the AM Helpfiles:
"Local variables are deleted as soon as the execution stops" I assume that the local variable is deleted after the player has gone to the next frame if it's about the command Action.GoToFrame.
User avatar
Mystery
Forum Admin and Games Page admin
 
Posts: 2990
Joined: Sat Feb 04, 2006 8:12 am
Location: Switzerland

Postby indy2 » Sat Sep 01, 2007 9:26 am

ok thanks for information !
indy2
Member
 
Posts: 31
Joined: Thu Nov 02, 2006 3:04 pm

Postby GM-Support » Sat Sep 08, 2007 1:54 am

Hi,

A local variable (i.e. a variable that is declared by a piece of VBScript code, and NOT by the "Variables" window of Adventure Maker) is deleted as soon as the said piece of VBScript code is ended.

For example, if you declare the variable in the code under the "advanced" tab of the "Hotspot Properties", the variable is created when the user clicks on the hotspot and it is deleted as soon as the last line of VBScript code has been executed (i.e. almost immediately).

As you know, if you want to create a variable that is not deleted, you must declare it from the "Variables" window.

Best regards,
GM-Support
P.S. I have added the slow mouse click problem to the list of bugs. Thanks for reporting it.
GM-Support
Forum Admin and Games Page admin
 
Posts: 2221
Joined: Thu Jun 05, 2003 7:52 pm


Return to Adventure Maker Technical Support and Bug Reports

Who is online

Users browsing this forum: No registered users and 0 guests