Search found 10 matches

by Hoomst
Mon Oct 03, 2022 11:58 am
Forum: Ren'Py Questions and Announcements
Topic: How to center multiple lines of text on a screen [SOLVED]
Replies: 2
Views: 387

Re: How to center multiple lines of text on a screen

Thank you! That does exactly what I wanted.
by Hoomst
Mon Oct 03, 2022 11:19 am
Forum: Ren'Py Questions and Announcements
Topic: How to center multiple lines of text on a screen [SOLVED]
Replies: 2
Views: 387

How to center multiple lines of text on a screen [SOLVED]

I'd like to center multiple lines of text on a screen like this: Input: screen example(): text "This is an interresting \n description. \n Please read it." Output: This is an interresting description. Please read it. xalign 0.5 centers the whole text block and not every single line of the ...
by Hoomst
Sun Sep 25, 2022 5:40 pm
Forum: Ren'Py Questions and Announcements
Topic: Centering text inside a frame [solved]
Replies: 2
Views: 309

Centering text inside a frame [solved]

I have a small image on which I'd like to display a centered text. I figured using a frame with the image as the background would be an easy way to do that While I can use xpos and ypos to adjust the position of the text, xalign and yalign don't seem to do anything. What's the best way to have an im...
by Hoomst
Tue Sep 06, 2022 9:02 am
Forum: Ren'Py Questions and Announcements
Topic: Transform drag when hovering over it
Replies: 0
Views: 525

Transform drag when hovering over it

I'd like to add a transform to drags when hovering with the coursor over them. I get the error "Exception: Only drags can be added to a drag group." How can I achieve that? Eventually I also want a function to trigger when the drags are being hovered over but I haven't finished the code fo...
by Hoomst
Sat Sep 03, 2022 4:31 pm
Forum: Ren'Py Questions and Announcements
Topic: List of class objects
Replies: 2
Views: 338

Re: List of class objects

That solved my problem. Thanks for the quick response!
by Hoomst
Sat Sep 03, 2022 3:05 pm
Forum: Ren'Py Questions and Announcements
Topic: List of class objects
Replies: 2
Views: 338

List of class objects

I'd like to create a list of class objects. I intend to use that list to create imagebuttons with a for loop (for g in girls_list...). I get the following error: NameError: name 'mg' is not defined How can I create a list of these class objects? class Girl(object): def __init__(self, character, name...
by Hoomst
Fri Jul 08, 2022 5:40 pm
Forum: Ren'Py Questions and Announcements
Topic: hiding screens when talking to a character
Replies: 3
Views: 339

Re: hiding screens when talking to a character

Thanks for the advice!
I will start using helper labels then.
by Hoomst
Thu Jul 07, 2022 3:15 pm
Forum: Ren'Py Questions and Announcements
Topic: hiding screens when talking to a character
Replies: 3
Views: 339

hiding screens when talking to a character

I'd like to automatically hide screens whenever I'm talking to a character. My game has an open world where I have to click on most characters to start talking to them. As of now I am using Imagebuttons to display my characters and make them clickable. In some cases dialogue is also triggered by jum...
by Hoomst
Thu Jul 07, 2022 9:41 am
Forum: Ren'Py Questions and Announcements
Topic: How to make characters clickable
Replies: 2
Views: 378

Re: How to make characters clickable

Thanks for the advice!
Setting the screen's layer to "master" did the job for me.
by Hoomst
Wed Jul 06, 2022 5:03 pm
Forum: Ren'Py Questions and Announcements
Topic: How to make characters clickable
Replies: 2
Views: 378

How to make characters clickable

In certain areas of my game I'd like to display characters that the player can talk to by clicking on them. When hovering over the character the image should get a bit brighter to indicate that it is clickable. When first researching this, I stumbled upon someone recommending imagebuttons as charact...