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.
DannyGMaster wrote: ↑Mon Sep 18, 2017 4:06 pm
I know this, that's why I had to use a global variable in my previous implementation, I forgot to change the code in that post too, that should be an If with SetVariable action. Anyway that one is too completely wrong.
As a general rule, keeping stuff local (if possible) is a better bet in 99.9% of all cases. Something along the lines of:
is something to consider before going global. It's a good setup as well, definitely with less interaction restarts, it doesn't feel like an issue here, but with loads of stuff on the screen, my example may cause lag, yours, if done properly will not (or at the very least less so).
Alright, thanks guys for taking the time to look into this issue, however I am quite confused as to which code to use right now, DannyGMaster's edited initial code or xela's code???
All the best
Use my variant. Danny's approach is likely (likely because I have no idea if Ren'Py will recreate timers as it expects, never looked into that or tried doing it that way) workable as well, but it's unfinished. Mine version is ready to use, you should also be able to add to the value if some special button is clicked.
timdonehy200 wrote: ↑Wed Sep 20, 2017 8:40 am
Everything fell into place, thanks to you guys. I guess this topic could be marked as "solved" but I don't know to do that myself.
I was troubled by that too. To do that go to your first post, edit it and change the title. Simply put "[SOLVED]"
or wathever you want before of after it and save it, that should do the trick.