Defining in-game

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
DesertFox
Regular
Posts: 196
Joined: Sun Jul 28, 2013 1:29 pm
Completed: Over The Hills And Far Away
Projects: My Little Dictator
Organization: WarGirl Games
Contact:

Defining in-game

#1 Post by DesertFox »

Is there a particular expression/variable that can be used in a boolean to determine if the player is in-game or not?

Similar to 'if main_menu' for determining navigation buttons?

I'm trying to use a boolean so that yesno screens are different dependent on if they're viewed in-game (i.e. from the quick menu, the window's 'X' button) or viewed in screens (Preferences, Load/Save, Navigation, Main Menu).

User avatar
trooper6
Lemma-Class Veteran
Posts: 3712
Joined: Sat Jul 09, 2011 10:33 pm
Projects: A Close Shave
Location: Medford, MA
Contact:

Re: Defining in-game

#2 Post by trooper6 »

I can't do the research right now because I'm under a massive deadline and not at home, but all those other out of game menus you specify are screens...you could always use renpy.get_screen (there may not be an underline in there, I can't check where I'm at) to see if it is one of those menus and if so use your alternate yes/no screen.
A Close Shave:
*Last Thing Done (Aug 17): Finished coding emotions and camera for 4/10 main labels.
*Currently Doing: Coding of emotions and camera for the labels--On 5/10
*First Next thing to do: Code in all CG and special animation stuff
*Next Next thing to do: Set up film animation
*Other Thing to Do: Do SFX and Score (maybe think about eye blinks?)
Check out My Clock Cookbook Recipe: http://lemmasoft.renai.us/forums/viewto ... 51&t=21978

Post Reply

Who is online

Users browsing this forum: Bing [Bot], Wildmask