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.
if not renpy.music.get_playing(channel='music') == "out_and_about.ogg":
imagebutton auto "gui mainmap%s" xpos 0 ypos 0 focus_mask True action [Play("music", loop=1.777, "out_and_about.ogg"), Jump("lbl_townmap_setup")
else:
imagebutton auto "gui mainmap%s" xpos 0 ypos 0 focus_mask True action Jump("lbl_townmap_setup")
the problem is that the "loop=1.777" part is not working, seems like its being ignored.
The idea is that this track will play when the player hits the map button and continues to play without stopping if the player transistions to another location that uses the same music file or if they hit the map button again. All of the code that does that is working fine, but in this particular part of the code the loop statement is just not doing anything.
It works perfectly fine on a new project. Do check that it's not somewhere else that causing the problem. You could drop the traceback and a code here and I'll see what went wrong.