Gallery Images seen count

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.
Post Reply
User avatar
Posts: 18
Joined: Tue May 25, 2021 6:10 am

Gallery Images seen count

#1 Post by henne »


I use pretty much this gallery code and it works, so thanks :)

My problem.
I want to count how many images were already seen by the player, so something like:

Code: Select all

default persistent.bg_seen = 0
default persistent.max_bg_seen = #whatever my max will be

##Somewhere in my gallery screen:

So I was wondering how to achieve that. I know that I would need to add "$ persistent.bg_seen += 1" somewhere but I don't seem to find the right place for it, aside from adding it under every image but that seems a bit awkward?

If something seems unclear please ask as English is not my first language.

Post Reply

Who is online

Users browsing this forum: Google [Bot]