I'm currently trying to make a "notificafion system" in which during the game the variable is set to true, which makes an icon on the uper right corner show a notification. That's currently working. The problem i'm having is that when you click on the icon I want it to show a screen and move the variable back to False, which will make the icon return to it's regular image.
Creating the variable
Code: Select all
define notificacao = False
Code: Select all
if notificacao:
imagebutton auto "gui/button/celular__notificacao_%s.png" action [ToggleScreen("celular"), ToggleVariable( notificacao)] xalign 0.8
else:
imagebutton auto "gui/button/celular_%s.png" action ToggleScreen("celular") xalign 0.8
AttributeError: 'bool' object has no attribute 'rpartition'
I don't quite understand variables in renpy so I don't know where to check for errors.
Any help?