This is a simple image gallery I created in my tutorial.

YouTube Tutorial:


Version 2 can be found at this link: https://zeillearnings.itch.io/image-gallery-v2

Scope

  • Add an "Album" button on the Main Menu
  • Show locked and unlocked images on the gallery screen
  • Show a CG in script.rpy
  • Unlock Images in script.rpy

How this works

There's an Album button on the main menu. You can click that and it will lead you to the gallery screen. To do that, add this two lines:

if renpy.get_screen("main_menu"):
    textbutton _("Album") action ShowMenu("album")

to below this code in screens.rpy

textbutton _("Preferences") action ShowMenu("preferences")


The other explanations can be found in the code's script.rpy and gallery.rpy 

Free. No credits are needed.

Sponsorship

Patreon
Patreon Sponsors

StatusReleased
CategoryAssets
Rating
Rated 4.7 out of 5 stars
(9 total ratings)
AuthorZeil Learnings
Made withRen'Py

Download

Download NowName your own price

Click download now to get access to the following files:

image_gallery.zip 2.2 MB

Development log

Comments

Log in with itch.io to leave a comment.

Hello, thank you for your tutorial, it helped me out in my last game but now my new game has around 20 cgs, is there anyway to make the screen scroll?

(1 edit)

Hello Zeil, sorry to be a bother. I was wondering if I could pick your brain about something?

I've gotten the Gallery feature to work, which is great. However, when I click on the image in the gallery before it displays it shows a black screen with the words "Image 1 of 2 Locked". Is there some way I can get rid of this?

- Problem has since been solved. (user error)

Cheers,

Fynnbarr

Hello Fynnbarr! What does your code look like? You can send it to my discord: _zeil