Hi,
I have a New GUI Interface.
How to make so that at the entrance to the game menu, music would be paused, and at the exit - unpaused?
Music pause in the game menu
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.
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.
- IrinaLazareva
- Veteran
- Posts: 399
- Joined: Wed Jun 08, 2016 1:49 pm
- Projects: Legacy
- Organization: SunShI
- Location: St.Petersburg, Russia
- Contact:
Re: Music pause in the game menu
try to add this line in screen game_menu (~ 412th line of screens.rpy file):
https://www.renpy.org/doc/html/screen_a ... PauseAudio
Code: Select all
on 'show' action PauseAudio('music', True)
Re: Music pause in the game menu
It works!IrinaLazareva wrote:try to add this line in screen game_menu (~ 412th line of screens.rpy file):
https://www.renpy.org/doc/html/screen_a ... PauseAudioCode: Select all
on 'show' action PauseAudio('music', True)
Many thanks!