Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
- Posts: 2
- Joined: Fri Sep 20, 2019 11:09 am
Hello! I want to make a toggle button in my game, but I don't know how. I have a clue that it is possible to make something like that:
Code: Select all
xalign 0.5 yalign 0.1
textbutton "This is hbox!":
action SetVariable("m", 10)
textbutton "This is a new hbox!":
action SetVariable("m", 0)
but it doesn't seem to work. Any ideas?
- Posts: 265
- Joined: Tue Oct 02, 2012 2:40 am
- Projects: Chasing
- Deviantart: bara-ettie
- Location: Canada
Your action is a set and not a toggle. you can use a togglevariable