Skip to main content

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

Point'n'Click Plug-In for Ren'Py

Framework for adding interactable point'n'click elements into Ren'Py games · By Devil Spiδεr

setting a button to disappear?

A topic by lettucetuce created Feb 17, 2026 Views: 175 Replies: 1
Viewing posts 1 to 2

Hi! I'm very new to coding and your plugin has been super helpful so far!

That said, I was wondering if it's possible to set a conditional for a button so that it appears with the rest at the start of the pnc segment, then disappears after a specific action (for example, an item disappearing after being picked up)? I figured I could set the flag as true somewhere at the start, and change it to false later, but I don't know where I could set it, or if this would even be the right way of doing it.

Developer

In the demo/example, one of the buttons has the condition in the form of “pnc_flags.get(‘door_unlocked’) == True”. To hide that button, you can add

$ pnc_flags["door_unlocked"] = False

into the correct label.

For further questions, I am available in the official Ren’Py Discord server.