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.
philat wrote:Well, honestly can't help you, because it's working fine for me. I guess you can try using image lock1 = DynamicImage("lock_[d1].png") to force it to DynamicImage, but it really shouldn't be necessary (and is working for me with just "lock_[d1].png" on 6.99.11).
Thank you for your help.
I finally got it to work. Turns out I had to define the images just like this "lock_[d]"
this is a dead link to the image, but I really would like to try implementing something like this in my game. Do you happen to have the image that was originally posted so I can see how this works?
I can't quite tell what you're trying to do from the code snippets you posted, so the following assumes a 4 digit lock, with 10 possible answers for each digit (0~9), and that you have images named lock_1.png, lock_2.png, etc. in the appropriate folder. Haven't tested the dynamic images, but they should work, or I've made a dumb syntax mistake somewhere -- the concept should be fine.
I have no idea, I just pulled it off google. In any case, the screen is simple enough. Also look here for a similar example: viewtopic.php?f=51&t=51868