Search found 53 matches

by HB38
Tue Feb 16, 2016 4:51 pm
Forum: Ren'Py Questions and Announcements
Topic: Live Composite and Text
Replies: 12
Views: 1233

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: 1233

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: 1233

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") image Allison = Text(...
by HB38
Fri Feb 12, 2016 10:07 am
Forum: Ren'Py Questions and Announcements
Topic: Live Composite and Text
Replies: 12
Views: 1233

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: 1233

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: 1233

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), "character...
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: 363

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. :lol:
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: 573

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 statement is indented out...
by HB38
Thu Jan 14, 2016 6:14 pm
Forum: Ren'Py Questions and Announcements
Topic: [Sovled] DynamicDisplayables and Live Composites
Replies: 8
Views: 531

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: 400

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: 531

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_list[%...
by HB38
Tue Jan 12, 2016 9:54 pm
Forum: Ren'Py Questions and Announcements
Topic: [Sovled] DynamicDisplayables and Live Composites
Replies: 8
Views: 531

Re: More variable 'fun' in images…

Yeah, when I saw this, it seemed odd that this would work properly. I already told you that I'm pretty sure you have to write out DynamicDisplayable by long hand. Pardon my ignorance, but what would that look like? Can I nest the Composite Inside it? Or do I convert the entire LiveComposite to a Dy...
by HB38
Tue Jan 12, 2016 8:26 pm
Forum: Ren'Py Questions and Announcements
Topic: [Sovled] DynamicDisplayables and Live Composites
Replies: 8
Views: 531

Re: More variable 'fun' in images…

Alright… I've run into an interesting issue now - it looks like everything is working great, but the images don't seem to be updating when I vary the variable in the game (they do change if I hard code the variable at the start, so I know the code there is solid). I'm thinking the LiveComposite does...
by HB38
Tue Jan 12, 2016 6:44 pm
Forum: Ren'Py Questions and Announcements
Topic: [Sovled] DynamicDisplayables and Live Composites
Replies: 8
Views: 531

Re: More variable 'fun' in images…

When you have multiple %s in your code line, you need to specify a list of variables in appropriate order to fill them in, like "text_%s_%d_%s"%(string_var, data_var, another_string_var) Ahh! Excellent - I was placing the ( on the left of the % when I tried using that. … You wouldn't happen to know...
by HB38
Tue Jan 12, 2016 5:07 pm
Forum: Ren'Py Questions and Announcements
Topic: [Sovled] DynamicDisplayables and Live Composites
Replies: 8
Views: 531

[Sovled] DynamicDisplayables and Live Composites

So, I was almost completely set with my variables in my project when I ran across this use case: image template_1_doll = LiveComposite( (1024,768), (0,0), "images/characters/template_1/hair/style_1/back_hair_[char_list[%s].hair].png"%curr_char, ####### This works great! (0,0), "images/characters/tem...