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.
Hey, I have a little music player screen as part of my interface, and the buttons do what they are supposed to; however, the player text and buttons only update when another button is pressed somewhere else. I would like this screen to refresh itself often enough that when a new track is played, it will display the right track name, and when you stop or go to the next track, it displays the correct info.
It seems like clicking one of the imagebuttons should make the screen refresh (like if you click "Stop", it should no longer show the music that's playing and should display the play button instead), but that is not the case.
How can I make this screen refresh and show the correct information?
When I try that, the whole Ren'py engine freezes up when it gets to that screen. I can't right-click or even quit; I have to kill the process. I looked at the documentation of renpy.restart_interaction, and it seems like what I probably need to use, but I'm not sure of how to call it properly.
Really?! Wow, you're right, thank you so much!
I guess it didn't come up as a syntax error because it is not parsed until the screen is shown.
Ohh, now I see it in the documentation. "Along with these actions, an action may be a function that does not take any arguments." Though it doesn't say that you need to remove the parentheses.