I am working on a Renpy project and so far its very promising however I have a probably very basic bug that I cannot figure how to fix.
I have a few screens (user interfaces) that I show the player when they click on an icon on the screen (inventory screen, character screen, map, etc.). Everything work perfectly until you click on the close button to exit the interface. It works and close the screen but it also carry on with the main game story, just like when you click anywhere during the normal story mode, you go to the next topic or label etc.
Is there a way to prevent the story to carry on after I have clicked on my "close button" ?
Here a very basic code of one of my window :
Code: Select all
screen cs_screen:
add "gui/inventory.png" # the background
modal True #prevent clicking on other stuff when shown
hbox align (.517,.92) spacing 20:
textbutton "Close" action [ Hide("cs_screen"), Show("cs_button"), Return(None)]