minimise ren'py on key press[Solved]

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
dragonlord3989
Regular
Posts: 30
Joined: Tue Nov 17, 2015 1:34 pm
Contact:

minimise ren'py on key press[Solved]

#1 Post by dragonlord3989 »

would it be possible to make it that when you press a button you game gets minimised

Code: Select all

screen minimise:
    key "q" action Minimise
Last edited by dragonlord3989 on Thu Jul 28, 2016 5:06 am, edited 1 time in total.

DragoonHP
Miko-Class Veteran
Posts: 758
Joined: Tue Jun 22, 2010 12:54 am
Completed: Christmas
IRC Nick: DragoonHP
Location: Zion Island, Solario
Contact:

Re: minimise ren'py on key press

#2 Post by DragoonHP »

This should work.

Code: Select all

key "q" action Function(renpy.iconify)

dragonlord3989
Regular
Posts: 30
Joined: Tue Nov 17, 2015 1:34 pm
Contact:

Re: minimise ren'py on key press

#3 Post by dragonlord3989 »

DragoonHP wrote:This should work.

Code: Select all

key "q" action Function(renpy.iconify)
That worked thank you

Post Reply

Who is online

Users browsing this forum: Bing [Bot]