Ren'Py How to create language-switching buttons with imagebuttons in RenPy

Polontayn

New Member
Aug 15, 2022
6
0
I want to create language-switching buttons with an imagebutton in RenPy. I know how to create them. But, which function is responsible for switching the language? I tried action Language("English"), but it doesn't work. It works fine with textbutton, but not with imagebutton. I won't say exactly what error the game gives me, because I'm sure I'm doing it wrong. Please tell me how to do it. All I want is to have 2 images and when I click on them, the language will switch.

Thank you!