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.
Im confused, im trying to make a button that can change the background (or maybe in the future other things) and im trying to read things online about it but im in the wrong road, im not understanding how to use the buttons for actions, i need a button that change the background like 5 times, like "press one time = bg1, second time = bg3 ecc.." and that after the fifth bg it returns to the main label like if you didn't click it, but i also need that this can work in different labels, like "label 1 press one = bg10. label 2 press one = bg20" but with the button in the same position and with the same image, i hope i didn't confuse everyone there like me lol, what im doing wrong? probably everything. Thanks to everyone
Ouch the error is "I'm sorry, but errors were detected in your script. Please correct theerrors listed below, and try again.
File "game/sbmode.rpy", line 92: expected statement.
imagebutton:
File "game/sbmode.rpy", line 96: expected statement.
imagebutton:
Ren'Py Version: Ren'Py 7.1.3.1092
Mon Jan 14 17:36:04 2019
"
I need to pay more attention about what i write...
So i tried the code you gave me, it work's really well, i will search some more about it and i will try to understand it. Thanks, this is the second time you help me, i owe you, thanks again