Building a Clues Screen with Keyguard

This forum is meant for announcing new plugins, downloading other people's plugins, posting questions, etc.

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

Building a Clues Screen with Keyguard

Postby Sedani Studio » Sun Nov 06, 2011 12:36 am

Hello everyone!

I haven't posted for a while, but had some time today to work on my current project (hopefully I'll have an announcement before too many months!)

In my game, I have created a HINTS frame with the Keyguard plugin. By pressing the H button, the player goes to a HINTS frame. Because the hints frame will have links to other picture frames, such as pictures the player has taken during the game, I created a FRAMEVAR variant variable. When the player presses the H button, the current frame name is stored in FRAMEVAR, and this allows for the player to click on a "return" hotspot on the HINTS screen and return back to FRAMEVAR.

Some of you have already figured out the problem. If the player presses H while in the HINTS frame, then it stores the HINTS frame as the current frame. When the player then clicks on the RETURN hotspot, it simply links back to itself and there's no way out.

Is there a way to turn off the keystrokes function of Keyguard while in certain frames? Perhaps there is some additional code that could be added to the particular frame itself. Thus far, I've tried modifying the code in the universal procedures to have the keystrokes only work if the player isn't in certain frames, but it doesn't seem to be working.

I'd like to turn it off in the HINTS frame, but also on the startup frame.

Thank you in advance!

- Ian
User avatar
Sedani Studio
Member
 
Posts: 35
Joined: Tue Aug 12, 2008 4:26 pm
Location: Colorado, USA

Perhaps a solution

Postby Sedani Studio » Sun Nov 06, 2011 12:49 am

Ok, here I am answering myself again. I think I've figured it out by using an IF, THEN statement in the coding that only allows it to work on certain frames (... if the currentframe <> HINTS then process keystrokes).

Nonetheless, if anyone else has a good, elegant suggestion, I love learning new techniques!
User avatar
Sedani Studio
Member
 
Posts: 35
Joined: Tue Aug 12, 2008 4:26 pm
Location: Colorado, USA

Postby ShadowHunter » Sun Nov 06, 2011 4:07 pm

Hi,

I sent you an email with two suggestions:

1. Select Case for an exclusion list (like If Then but more easy)
2. Resume and Pause methode of KeyGuard

With best regards,

ShAdOwHuNtEr
User avatar
ShadowHunter
Forum Admin and Games Page admin
 
Posts: 1304
Joined: Fri Jun 06, 2003 10:37 pm
Location: Belgium


Return to The Plugins Corner

Who is online

Users browsing this forum: No registered users and 1 guest

cron