ConditionSwitch and Gallery
Posted: Wed Dec 04, 2019 6:17 pm
I'm using ConditionSwitch to control which character image shows based on a variable called "score", different poses, outfits, etc. I eventually plan to make these animated, but that shouldn't matter.
This works great and as player score goes up and down, the image shown changes accordingly.
However I also have a gallery in my game to showcase the stuff you unlock. This works great if I just show the individual images but as this was giving me trouble with logic, I started using ConditionSwitch.
The trouble here is that this does not work well, none of the images unlock after being seen.
I scoured the documentation for some clues, but couldn't work out why, so instead looked for some kind of renpy.MarkImageAsSeen("imageName") , but didn't find anything.
The best thing I found was
But this seems hacky.
Is there any better way to do this?
This works great and as player score goes up and down, the image shown changes accordingly.
However I also have a gallery in my game to showcase the stuff you unlock. This works great if I just show the individual images but as this was giving me trouble with logic, I started using ConditionSwitch.
The trouble here is that this does not work well, none of the images unlock after being seen.
I scoured the documentation for some clues, but couldn't work out why, so instead looked for some kind of renpy.MarkImageAsSeen("imageName") , but didn't find anything.
The best thing I found was
Code: Select all
show myImage
hide myImage
Is there any better way to do this?