CREATE YOUR AI CUM SLUT ON CANDY.AI TRY FOR FREE
x

Ren'Py How to do a map of game progress, like in "With Eyes Closed" by Ker?

Oppailance

Member
Feb 26, 2018
113
81
In "With Eyes Closed" after each chapter, the game shows a flow chart of the choices the player made, out of all possible choices. It visualizes what you've seen, and the routes you've missed.

Is there a specific package or plugin for Renpy that does this, or is this custom programming?
 

MissFortune

I Was Once, Possibly, Maybe, Perhaps… A Harem King
Respected User
Game Developer
Aug 17, 2019
5,406
8,682
I have seen the specific screen, but an easy way to recreate this would be to have the background/base image (the flow chart) and then adding screens/images for each choice made with if/else statements. Something like:

Python:
screen flowchart:
    add "images/flowchart_screenbackground.png"
    add "images/flowchart_base.png"
    
    if choice1 is True:
        imagebutton:
            idle "images/flowchart/choice1_idle.png"
            hover "images/flowchart/choice1_hover.png"
            #add sounds here for hover if needed
            action ShowMenu("choice1") #if you have another screen for the choice.
    else:
        imagebutton:
            idle "images/flowchart/choice1false_idle.png"
            hover "images/flowchart/choice1false_hover.png"
            #add sounds here for hover if needed
            action NullAction()
            
    if choice2 is True:
        imagebutton:
            idle "images/flowchart/choice2_idle.png"
            hover "images/flowchart/choice2_hover.png"
            #add sounds here for hover if needed
            action ShowMenu("choice2") #if you have another screen for the choice.
    else:
        imagebutton:
            idle "images/flowchart/choice2false_idle.png"
            hover "images/flowchart/choice2false_hover.png"
            #add sounds here for hover if needed
            action NullAction()
            
    #And so forth. . .
The general idea here would be to build the entire flowchart in Photoshop, and save each layer (except for the background) as their own png. Thus with a "modal True", you can just add the imagebutton without having to fuck around with xpos/ypos/etc.
 

osanaiko

Engaged Member
Modder
Jul 4, 2017
2,573
4,693
Also note that with a standardized naming structure for the images / "choice" markers, you could implement so that all the "choice path components" are stored in a data struct (array, dict etc) and the screen code displays with a loop over that data struct. This would reduce the large size of the screen code, with the trade off being some complexity of implementation.