Search found 2 matches
- Sat Nov 09, 2019 6:48 pm
- Forum: Ren'Py Questions and Announcements
- Topic: How to unselect a button and reverse its effects?
- Replies: 1
- Views: 524
How to unselect a button and reverse its effects?
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: screen several(): hbox: xalign 0.5 yalign 0.1 textbutton "This is hbox!": action SetVariable("m", 10) if selected: textbutton "This is a new...
- Sun Sep 29, 2019 7:18 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Possible to use 'call' or other Ren'Py statements in a python function?
- Replies: 1
- Views: 500
Possible to use 'call' or other Ren'Py statements in a python function?
Hello! I wonder if this is possible to use statements like 'jump label' or 'call screen' inside the python function. For example, if we have: ' def function(smth): if smth = 0: call screan bubaleh ' I've been trying to do this, but there is always "invalid syntax" mistake. If this is ALWAY...