Ok, I have this lil' ol' room of a minigame that uses keyboard, so in the before entering room interaction I disabled the mouse. I also have this GUI that shows up after playing the minigame asking if you want to retry or quit. However, since using the mouse is the simplest way I can think of operating a GUI, I tried re-enabling the mouse. It doesn't work.
Aside from that, there is the problem that the game continues running in the background when the GUI is called. I was using a Visible= Popup Modal GUI (it says that Popup Modal is the only "blocking GUI"), but I changed it to Normal just for the heck of it, and it had the same problem (in fact, the only difference I noticed between the two was that I had to disable the GUI in the beginning for normal). I have a feeling that this is related to the first problem. I asked around #AGSTech first, and they seemed to be experiencing the same problem with commands around the one to enable the GUI.
The code is simple enough. This was in the Rep_ex:
if (hbar.Value<=0) {
mouse.Visible=true;
gEnd.Visible=true;
}
For those interested in looking more closely, here (http://www.babar.squarespace.com/storage/other/canyon.rar) is the rarred source.
OK, downloaded the source and took a look:
First question:
I'm pretty sure it does work, it's just that the mouse cursor has been set to a single (possibly transparent?) pixel, so you can't see it. Changing the cursor image works fine.
Second Question:
I have no idea why using the popup-modal GUI doesn't pause it, but try putting all the code in rep_ex in an if (gEnd.Visible == false) { condition. I've tried it, and it works OK.
A modal GUI being displayed will stop animations and movement, but they will still allow all the scripts to run as per usual -- otherwise, you'd be stuck in a modal state with no way out of it!
Ufff. I do really stupid things sometimes. Thanks for the help. Works now.
Yeah, I didn't know exactly how it worked, Pumaman. The character stopped animating, but I was directly altering it's x and y coords, so I suppose those would continue changing in the background.