Search found 3 matches
- Tue Feb 18, 2020 1:47 pm
- Forum: Ren'Py Questions and Announcements
- Topic: [SOLVED] Using a Screen Inside of a Function gives 'Not Defined' error
- Replies: 5
- Views: 489
Re: Using a Screen Inside of a Function gives 'Not Defined' error
Since you’re inside a Python function, you need to use the Python function to show your screen https://www.renpy.org/doc/html/screen_python.html#renpy.show_screen OHHHHH!! Oh my god, thank you so much!! Changing it to this: init python: def play_music(song): renpy.music.play(song) if persistent.mus...
- Tue Feb 18, 2020 12:31 pm
- Forum: Ren'Py Questions and Announcements
- Topic: [SOLVED] Using a Screen Inside of a Function gives 'Not Defined' error
- Replies: 5
- Views: 489
Re: Using a Screen Inside of a Function gives 'Not Defined' error
The error is that you have to show the screen, not just calling it like any function. Thank you for responding? What's the way to show a screen under a python init? Because this: init python: def play_music(song): renpy.music.play(song) if persistent.music_notifs == True: for x in music_tracks: if ...
- Mon Feb 17, 2020 11:02 pm
- Forum: Ren'Py Questions and Announcements
- Topic: [SOLVED] Using a Screen Inside of a Function gives 'Not Defined' error
- Replies: 5
- Views: 489
[SOLVED] Using a Screen Inside of a Function gives 'Not Defined' error
My goal is to have an option that, when enabled by the player, will cause a bar to appear in the upper-left hand corner when a music track starts, which will have a little icon of a music note and the name of the song. This is for folks who want to know the names of the songs, folks who cannot hear ...