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.
Without the first action (play a sound) the code works OK, but when I add it, the sound plays three times when the screen is called (why?), and one time when is closed (this is right).
Hmm not really sure what could be causing the problem but I think instead of using the renpy.play change it instead to activate_sound. Something like so:
I tested this with a texbutton and it seems to work. Not sure if it applies to imagebutton but since both imagebutton and textbutton inherit from button it should theoretically work.