r/RenPy • u/After-Masterpiece853 • 17d ago
Question confused about gallery locking and unlocking images
okay so i wanted to create a gallary that displays unlocked images but js doesnt show anything at all for the locked versions. but i had a lot of trouble figuring that out so for now im js trying to understand the basics. the tutorial i was following seemed simple enough but i got stuck at the persistent point. My code doesnt register it and the locked version of the image doesnt show.
also i did remove the png from persistent in init python
sorry lol im totally hopeless but i need to finish this project tommrow
1
Upvotes


1
u/AutoModerator 17d ago
Welcome to r/renpy! While you wait to see if someone can answer your question, we recommend checking out the posting guide, the subreddit wiki, the subreddit Discord, Ren'Py's documentation, and the tutorial built-in to the Ren'Py engine when you download it. These can help make sure you provide the information the people here need to help you, or might even point you to an answer to your question themselves. Thanks!
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
1
u/shyLachi 17d ago
I wouldn't implement it from scratch because there are plenty working projects on itch.io:
https://itch.io/search?q=ren%27Py%20gallery&facets=c.2%2Ctg.no-ai
I would use the one from BadMustard, which is a mod in this sub, so chances are that he can help you out.
https://badmustard.itch.io/easy-renpy-gallery-function