Search found 8 matches

by Nokinori
Thu May 11, 2023 10:51 pm
Forum: Ren'Py Questions and Announcements
Topic: How to get x and y size of displayed image - get_image_bounds not working?
Replies: 2
Views: 247

Re: How to get x and y size of displayed image - get_image_bounds not working?

I ended up finding another way to accomplish what I was trying to do that was much less complicated. Thank you for the helpful advice though, I ended up learning a lot while looking into your solution.
by Nokinori
Wed May 10, 2023 11:05 am
Forum: Ren'Py Questions and Announcements
Topic: How to get x and y size of displayed image - get_image_bounds not working?
Replies: 2
Views: 247

How to get x and y size of displayed image - get_image_bounds not working?

This might sound like a strange question, but hang with me. I want to call a function that creates something based on the size of an image - lets call it imageA. The first step is getting the size of imageA as it can change contextually. I load imageA (I've tried it with and without a tag) as imageA...
by Nokinori
Fri Feb 17, 2023 7:14 pm
Forum: Ren'Py Questions and Announcements
Topic: Changing image based on who is speaking [SOLVED]
Replies: 6
Views: 4756

Re: Changing image based on who is speaking [SOLVED]

Well this was a confusing thread to read through. The replies about the _last_say_who are from a long time ago, and I'm also new to RenPy, so I can't answer too much about their functionality. But I can explain how to accomplish this using a character callback. For your code, you could add a variabl...
by Nokinori
Fri Feb 17, 2023 12:32 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Character name choose randomly
Replies: 4
Views: 274

Re: [help] Have a name randomly chosen

Can I do it over and over again for as many characters as I want ? Yes, you can create as many variables as you want. When writing code for RenPy, you are writing RenPy statements - like speaking the language of RenPy. You can also write Python statements and switch over to speaking the language of...
by Nokinori
Fri Feb 17, 2023 12:04 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Character name choose randomly
Replies: 4
Views: 274

Re: [help] Have a name randomly chosen

The easiest way to accomplish this would be with RenPy's random choice function. First you create a variable and define it as a list of options for RenPy to choose from like this: $characterName = renpy.random.choice(['Lucy', 'Emma']) When this code runs, the variable characterName will be set to on...
by Nokinori
Tue Feb 14, 2023 1:06 pm
Forum: Ren'Py Questions and Announcements
Topic: [Solved] How to make an expression (Image alpha mask) start its transform at the same place as another image?
Replies: 4
Views: 1207

Re: How to make an expression (Image alpha mask) start its transform at the same place as another image?

This is pretty close to what is discussed in post Transforms without starting points Thank you so much, your code works like a charm! I found this post pretty soon after I made my own, but to be honest a lot of the concepts and syntax are difficult for me to understand with how new I am to all of t...
by Nokinori
Fri Feb 10, 2023 3:48 pm
Forum: Ren'Py Questions and Announcements
Topic: [Solved] How to make an expression (Image alpha mask) start its transform at the same place as another image?
Replies: 4
Views: 1207

[Solved] How to make an expression (Image alpha mask) start its transform at the same place as another image?

I've been trying to get an image masking system working but I'm having problems with setting up transforms. Examples of an image masking system I'm basing mine off of: https://lemmasoft.renai.us/forums/viewtopic.php?f=8&t=48724&p=483288#p483364 https://www.twoandahalfstudios.com/2019/08/tds-...