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.
So a while back I made a post about having my menu change it's image and music after a certain amount of time. Turns out that the code that was given to me worked for a while, until I changed the time for it, and now it doesn't work. Truly, I'd like to fix it, any help?
Works fine for me. How does it not work for you, exactly?
Are you certain the only change you made was to change 'length' to 60.0; nothing else happened? And it worked fine immediately before that change and broke immediately after?
I changed it previously to another number (A higher one) and it seems that after that it doesn't work.
I now try testing it putting it at around 10 seconds and nothing, I'm not really sure if it'll only work with just 60 seconds- The idea is for it to change after a rather long time, after all.
I'm probably the most nervous game maker you'll find, it's a fact
Are you task-switching while you wait to see if it works, by any chance?
I seem to remember having a few issues related to timers and alt+tab awhile back.
Nope, I know that task switching makes it not work- and I'm not, sadly!! (I really wish that was the problem)
I'm now putting it at 5 secs so I evade task switching, but I've waited the minute again and nothing, sadly.
I'm probably the most nervous game maker you'll find, it's a fact
Okay, next theory: Have you changed your game's theme since you implemented the code?
When I ran it, at first there were no visible changes, because my theme has a solid background for its main menu. Check the value of mm_root in options.rpy. It should be something like "#0000" or "#00000000" for you to see the background images that you're setting. Maybe something changed it?
When I fixed that value, the code worked fine for me too.
Another thing I can suggest is to make sure you're using the latest version of Ren'Py. Maybe it's a problem in a previous version that has been solved since? If that doesn't help and there are no other ideas, we can try doing the same thing with different code.
I just did so and it's all the same, the thing is- not even the music changes, and I set the music with that code, actually! So it's really weird! I just tried with the #000000 thing and nope, it's not working.
Truly I think I might need to use another code ;; I've been curious to know if there is actually another one..
I'm probably the most nervous game maker you'll find, it's a fact
As you can see, the timing for the change to the alternative menu is now controlled by the mm_stay variable and the second music track is set from inside the mm_timer screen.
Replace the snippets you've shown us with these, and hopefully that takes care of the issue somehow. If not, we can add some signals here and there to shed light on what exactly is going wrong.