Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: EnterTheStory (aka tolworthy) on Sun 24/02/2008 17:45:14

Title: how to tell if blocking is on? (SOLVED)
Post by: EnterTheStory (aka tolworthy) on Sun 24/02/2008 17:45:14
What's the best way to tell if blocking is on?

I write a line in "repeatedly execute always" that checks the mouse mode for "wait." But when blocking starts the mouseMode is no longer updated. So the mose is reported as being the last mode BEFORE waiting.

Any suggestions?
Title: Re: how to tell if blocking is on?
Post by: Pumaman on Sun 24/02/2008 17:55:08
IsInterfaceEnabled() should tell you what you need.
Title: Re: how to tell if blocking is on?
Post by: EnterTheStory (aka tolworthy) on Sun 24/02/2008 17:58:14
Thanks!

Embarassingly I just found an old thread on the same topic, probably the exact second that you posted.  http://www.adventuregamestudio.co.uk/yabb/index.php?topic=31866.0

I think I need more experience at using the search box. I searched for "blocking" and read about thirty different threads before giving up, searching for "emodewait" and finding that one.
Title: Re: how to tell if blocking is on?
Post by: Pumaman on Sun 24/02/2008 18:36:21
You're certainly not the first person to miss that function. Perhaps it needs to be renamed to "Game.IsBlocked" or something to make it more obvious...