Ren'Py Image seen by player

Jon_Sleeper

Member
Nov 14, 2018
284
364
So I am making an unlockable image gallery and all the code for that is in gallery.rpy file.
Is there any way in renpy to check if a particular image has been seen by the player in any of his playthroughs without touching any of the script files other than gallery.rpy?
 

Rich

Old Fart
Modder
Donor
Respected User
Game Developer
Jun 25, 2017
2,566
7,384
Yes, there is. Next question?

Oh, you want to know what the method is? LOL



Code:
if renpy.seen_image("the image name"):
    do whatever is necessary if the image was seen
 

Evilko

Member
Apr 11, 2017
120
232
Or check default renpy gallery class. It have similar functionality already build-in.