Search found 57 matches

by HB38
Sun Jun 12, 2022 5:09 pm
Forum: Ren'Py Questions and Announcements
Topic: [Solved] Default class not updating for defined value
Replies: 5
Views: 355

Re: Default class not updating for defined value

Yeah, it's working for me now. Part of my issue was something I've never noticed before: If I flag a value and follow it with a say statement, it doesn't seem to show up in the variable viewer until the next say statement. Weird, but working as intended now. Thanks for the sanity check!
by HB38
Sun Jun 12, 2022 3:03 pm
Forum: Ren'Py Questions and Announcements
Topic: [Solved] Default class not updating for defined value
Replies: 5
Views: 355

Re: [Solved] Default class not updating for defined value

Related; is there an easy way to adjust the class so that it's more clear/easy to read (I'm trying to make an easy to read template). I see someone mentioned something similar to what I was looking for here ; ideally I'd like to swap from: define test_char = char("Test","Character&quo...
by HB38
Sun Jun 12, 2022 2:19 pm
Forum: Ren'Py Questions and Announcements
Topic: [Solved] Default class not updating for defined value
Replies: 5
Views: 355

Re: Default class not updating for defined value

Currently, your values are set to "First Name", etc. instead of what you pass on to the constructor. The correct way to do it would be: class char() : def __init__ (self, firstName="First Name", lastName="Last Name", fullName="Full Name", age=18): self.firstN...
by HB38
Sun Jun 12, 2022 2:02 pm
Forum: Ren'Py Questions and Announcements
Topic: [Solved] Default class not updating for defined value
Replies: 5
Views: 355

[Solved] Default class not updating for defined value

I can't believe I am having issues here since my whole project is about 100 words, but I'm defining a class as follows in one file: init -2 python: class char() : def __init__ (self, firstName, lastName, fullName, age): self.firstName = "First Name" self.lastName = "Last Name" se...
by HB38
Tue Feb 16, 2016 4:51 pm
Forum: Ren'Py Questions and Announcements
Topic: Live Composite and Text
Replies: 12
Views: 2906

Re: Live Composite and Text

Yes, it's a width problem. The only time I can reproduce what you're saying is happening is if the width of the LiveComposite itself is too small. This is going to sound like a dumb question… where does one set the width? As far as I knew for a LC you placed things in it given a specific set of X,Y...
by HB38
Mon Feb 15, 2016 2:59 pm
Forum: Ren'Py Questions and Announcements
Topic: Live Composite and Text
Replies: 12
Views: 2906

Re: Live Composite and Text

However… because the first names are of differing length I either get an ugly gap between the names or they over run each other. There's no way to set one image (text) flush to the right of another? No. LiveComposite positions things in a fixed place -- the pixels you give it. DynamicDisplayable ma...
by HB38
Fri Feb 12, 2016 4:52 pm
Forum: Ren'Py Questions and Announcements
Topic: Live Composite and Text
Replies: 12
Views: 2906

Re: Live Composite and Text

I was thinking if I defined every name in the game as an image (all 30 first and last names), I could probably then call them dynamically in the composite? This mostly worked - I defined every name I had (first and last): image Adam = Text("Adam") image Alicia = Text("Alicia") i...
by HB38
Fri Feb 12, 2016 10:07 am
Forum: Ren'Py Questions and Announcements
Topic: Live Composite and Text
Replies: 12
Views: 2906

Re: Live Composite and Text

Well, for instance, ARE you going to try to randomize the images? I assumed that you might want to, but you're referencing what seems to be a static image name in the LiveComposite, so I wasn't sure. Also, how are you adding this LiveComposite to a screen, and in what capacity? The names are random...
by HB38
Fri Feb 12, 2016 2:46 am
Forum: Ren'Py Questions and Announcements
Topic: Live Composite and Text
Replies: 12
Views: 2906

Re: Live Composite and Text

Yes, but the order of definitions is going to be tricky. You can use Text(variable_name) to show a string variable as a displayable. http://www.renpy.org/doc/html/text.html#text-displayables However, images must be defined in init (prior to the game starts), whereas your characters will be randomly...
by HB38
Fri Feb 12, 2016 1:54 am
Forum: Ren'Py Questions and Announcements
Topic: Live Composite and Text
Replies: 12
Views: 2906

Live Composite and Text

I'm wondering if there is some way I can integrate text into a live composite - I have the following code that I'm using to build a sort of 'map marker' for each character in the game: image character_0_doll_map_info = LiveComposite( (0,0), (0,0), "images/map/map_info_hover.png", (40,70), ...
by HB38
Fri Jan 29, 2016 2:22 am
Forum: Ren'Py Questions and Announcements
Topic: I need help figuring out some custom PNG button...[SOLVED]
Replies: 4
Views: 549

Re: I need help figuring out some custom PNG button stuff...

I did work :) Thanks again. The other way you can "cheat" this is by placing a 1% transparent box (in the image itself) around what you want to be selectable… you won't be able to see it (not unless you look really carefully, but it will still be selectable. … But the focus mask is better...
by HB38
Thu Jan 14, 2016 6:20 pm
Forum: Ren'Py Questions and Announcements
Topic: Couldn't find sound effect file (also select option twice)
Replies: 10
Views: 866

Re: Couldn't find sound effect file (also select option twic

Your imagebuttons are indented wrong. This: imagebutton: auto "date/choices/hay_%s.png" action Jump("hay") xpos 10 ypos 120 if (select_hay == True and chosen_option < 2): action [SetVariable(select_hay = True), SetVariable(chosen_option, +1) ] doesn't work, because your if state...
by HB38
Thu Jan 14, 2016 6:14 pm
Forum: Ren'Py Questions and Announcements
Topic: [Sovled] DynamicDisplayables and Live Composites
Replies: 8
Views: 762

Re: [Sovled] DynamicDisplayables and Live Composites

PyTom wrote:The trailing .1 tells when Ren'Py should update the DD again, in case anything changed. It's called at least once per interaction, so you might be able to get away with None instead.
Yeah, I monkeyed around with it a bit and figured it out. Thanks!
by HB38
Tue Jan 12, 2016 10:45 pm
Forum: Ren'Py Questions and Announcements
Topic: Stopping right mouse click and ESC from opening save menu
Replies: 3
Views: 765

Re: Stopping right mouse click and ESC from opening save men

Hello :). I am working on a project that includes small amounts of gameplay, and during gameplay, I would like to prevent users from saving the game. Currently, during gameplay segments, the dialogue bar is hidden, so there is no way to click on the save button from there. However, players can stil...
by HB38
Tue Jan 12, 2016 10:04 pm
Forum: Ren'Py Questions and Announcements
Topic: [Sovled] DynamicDisplayables and Live Composites
Replies: 8
Views: 762

Re: More variable 'fun' in images…

Ah HA! Bang on it enough (and get philat to PM you) and you figure it out: image template_1_doll = DynamicDisplayable(template_1_dollLC) init 0 python: def template_1_dollLC(st,at): global curr_char return LiveComposite( (1024,768), (0,0), "images/characters/template_1/hair/style_1/hair_[char_l...