Skip to main content

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

Hey hey :D

Thanks for the codex! It was awesome to use and real easy :)

How do I reset the codex's variables when a new game is started? I unlocked information on the codex in testing my game, but on further in the playthroughs the information stayed unlocked

Again, thank you!

(+1)

Hi! You're welcome, I'm glad you liked it^^

The examples in the project use persistent variables, so they persist through different playthroughs and saves and such. You can use regular variables to "reset" the codex every time you start a new game.

So instead of:

if persistent.bob:
                textbutton "Bob" action ShowMenu("bob")
Use:

if bob:
                textbutton "Bob" action ShowMenu("bob")
But make sure you define these variables at the start of your game :> Like:

label start:
    $ bob = False

Ohhh, thank you!! ^v^