Loop statement not working.
Posted: Sat Sep 16, 2017 9:05 am
So I have this code here:
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.
Any thoughts?
Thanks
Code: Select all
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 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.
Any thoughts?
Thanks