Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Hi! First off, thank you for this resource! Second, I've been trying to tweak the code so that I have a hidden scene that /isnt/ played in the main game, but rather unlocked and viewable via the replay gallery. All the pages and screens work fine and I get no error code, but the unlock is based on a point value that in theory, once that value is reached, its flagged as true .

if love > 7:

    $ hiddenscene = True

return 

#The hidden scene is below the return- if I move the return, the scene is triggered to play in the game rather than be unlocked but only viewable in the replay gallery

label heart2heart:


--I genuinely am a bit lost and hope you may be able to provide some insight

the replay gallery relies on the player having been to/played the label so we need a way to that label but make it "unplayable" but still accessible with a replay so i came up with this for you.

label start:

    if love > 7:

       call heart2heart

    return

label heart2heart:

    if not _in_replay:

        return

    else:

        show screen Replayexit

    e "all the good stuff here"

    $ renpy.end_replay()

    return

this lets you call the label multiple times, but still not do anything there, BUT it will unlock the scene for replay since it was (as far as renpy is concerned) 'seen' and it should play through fine during a replay 

this is untested code... let know if it works.

This worked and I am sending nothing but good vibes your way!!
The only thing, which is fixable, is that if you have defined a variable in the game, such as a custom name. This could likely be solved with persistent data but I thankfully dont need to do so so haven't tested. But as far as making a hidden and unlockable scene goes, this code worked like a charm!