Search found 3 matches
- Mon Aug 12, 2019 2:28 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Screen Toggling Button
- Replies: 1
- Views: 326
Screen Toggling Button
Hello, I would like to have a button in my Ren'Py game that toggles a screen on and off. I have attempted to create this here in the screens.py screen party_stats_button(): vbox : xalign 1.0 yalign 0 textbutton "Party Stats" action togglescreen Yet I get this error: NameError: name 'toggle...
- Sat Aug 10, 2019 3:55 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Obtaining Attributes From a Class
- Replies: 2
- Views: 436
Re: Obtaining Attributes From a Class
init python: class Survivor(object): def __init__(self, fname, sname, age, currhealth, maxhealth, currwill, maxwill, ability): self.fname = fname self.sname = sname self.age = age self.health = currhealth self.maxhealth = maxhealth self.will = currwill self.maxwill = maxwill self.ability = ability ...
- Sat Aug 10, 2019 1:18 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Obtaining Attributes From a Class
- Replies: 2
- Views: 436
Obtaining Attributes From a Class
Hi, I am trying to obtain an attribute from a class in renpy, and then display it to the user. Here is some example code: python: class survivor : def __init__(self): self.fname = fname self.sname = sname self.age = age self.health = currhealth self.maxhealth = maxhealth self.will = currwill self.ma...