Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
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.
show current imagebutton state (on or off)
imagebutton:
if x==True: imagebutton's image = "on.jpg"
if x==False: imagebutton's image = "off.jpg"
onclick: toggle x
replace/show current imagebutton state (on or off)
I feel like I'm ignorant of a very basic checkbox command that takes care of this in a simple way. I've spent hours looking up imagebuttons and my code just keeps getting more and more convoluted. Help! please!
If it matters, this will be a layer on top of another image.
Thanks!
Last edited by eath on Mon Jul 20, 2020 6:50 pm, edited 1 time in total.