Search found 83 matches

by newbiemate
Fri May 29, 2020 10:11 pm
Forum: Ren'Py Questions and Announcements
Topic: How to center text in a textbutton?
Replies: 12
Views: 305

Re: How to center text in a textbutton?

@rayminator I don't quite understand the hostility here, I tried both ways and I am saying it does not give the right results. Have you tried the code snippet, because your own code gives an error.... Also, I already said the "text_align 0.5" showing up twice was a typo, and fixing that still does n...
by newbiemate
Fri May 29, 2020 8:38 pm
Forum: Ren'Py Questions and Announcements
Topic: How to center text in a textbutton?
Replies: 12
Views: 305

Re: How to center text in a textbutton?

@rayminator sorry that was a typo, but the problem still persists. If you run that same code on your end, do you see the same issue?

Also here is the button image, if anyone wants to try it out:
a.png
a.png
a.png (256 Bytes) Viewed 287 times
by newbiemate
Fri May 29, 2020 7:50 pm
Forum: Ren'Py Questions and Announcements
Topic: How to center text in a textbutton?
Replies: 12
Views: 305

Re: How to center text in a textbutton?

Thanks, how about when a background is defined? I just tried the following: screen test: frame: xalign 0.5 yalign 0.5 xmaximum 400 ymaximum 400 textbutton "Click me": text_size 30 background "images/a.png" text_align 0.5 text_color "#000" label start: show screen test "testing" And the "Click me" te...
by newbiemate
Fri May 29, 2020 3:48 pm
Forum: Ren'Py Questions and Announcements
Topic: How to center text in a textbutton?
Replies: 12
Views: 305

How to center text in a textbutton?

I've created a textbutton inside a frame: frame: xalign 0.5 yalign 0.5 xmaximum 400 ymaximum 400 textbutton "Click me": xpos 30 ypos 30 text_size 30 But the text 'Click Me' is left-aligned, not centered in the textbox. I tried to use xalign/yalign 0.5 on the textbutton, but this shifts the entire te...
by newbiemate
Wed May 27, 2020 1:19 am
Forum: Ren'Py Questions and Announcements
Topic: How to show both AnimatedValue AND the value that's changing?
Replies: 7
Views: 320

How to show both AnimatedValue AND the value that's changing?

I have bar that renders a player's health. I would like to animate a healing spell, but also show the current health integer value as it increases. The speed at which the health increases is 2 seconds (for now). Below I have the code that uses AnimatedValue() , and I also have a text that displays t...
by newbiemate
Fri May 01, 2020 12:15 am
Forum: Ren'Py Questions and Announcements
Topic: Correct way of instantiating/modifying a global variable?
Replies: 3
Views: 140

Correct way of instantiating/modifying a global variable?

Hi, I have two questions regarding global variables: both instantiating them and modifying them. I have been having issues with reloading/rollback/saving because I made the mistake of only declaring the global variables inside the python init block, like so: BAD!!! init python: inv = "Ruby" Instead,...
by newbiemate
Tue Dec 31, 2019 2:20 am
Forum: Ren'Py Questions and Announcements
Topic: How to declare scene on a custom layer?
Replies: 1
Views: 274

How to declare scene on a custom layer?

Hi, I have a custom layer named ‘base’: config.layer = [‘base’, ‘master’, ... ] Normally I would declare a scene like this: label start: scene bg mybackground And that puts my image on the master layer by default. Is there a way I can make it specifically render on my custom base layer instead?
by newbiemate
Thu Aug 29, 2019 5:30 pm
Forum: Ren'Py Questions and Announcements
Topic: Scene command is incorrectly showing other scenes
Replies: 6
Views: 611

Re: Scene command is incorrectly showing other scenes

IrinaLazareva wrote:
Sat Aug 24, 2019 4:13 pm
The transparent background will be black after the game is released. But if it is crucial, you can use this instead of «hide bg orange»:

Code: Select all

    scene black with fade
Thanks, that seems to have worked!
by newbiemate
Thu Aug 29, 2019 5:29 pm
Forum: Ren'Py Questions and Announcements
Topic: Scene command is incorrectly showing other scenes
Replies: 6
Views: 611

Re: Scene command is incorrectly showing other scenes

I don't fully understand the intent of this. I might be able to help if I do. Are you trying to show background images based on the time of day? Based on a variable? Are you trying to animate the backgrounds changing at once? I'm not doing anything fancy like that. I have a main scene where the pla...
by newbiemate
Fri Aug 23, 2019 7:24 pm
Forum: Ren'Py Questions and Announcements
Topic: Scene command is incorrectly showing other scenes
Replies: 6
Views: 611

Re: Scene command is incorrectly showing other scenes

Thanks, that's a nice idea, but now instead of showing the orange it shows a transparent background briefly and then proceeds to the next scene background.
by newbiemate
Thu Aug 22, 2019 6:52 pm
Forum: Ren'Py Questions and Announcements
Topic: Scene command is incorrectly showing other scenes
Replies: 6
Views: 611

Scene command is incorrectly showing other scenes

I have a weird issue. I have set up a game where I set the background image using a simple add statement through a screen. However, it calls other labels which uses the scene statement to setup the background image. The game interaction loops around, so the backgrounds should be hidden/shown based o...
by newbiemate
Fri Jul 12, 2019 8:10 pm
Forum: Ren'Py Questions and Announcements
Topic: Align columns in a vpgrid?
Replies: 4
Views: 363

Re: Align columns in a vpgrid?

@trooper6 What is the width property of an "add <image>", if the first column is to be a picture instead of text?
by newbiemate
Fri Jul 12, 2019 3:58 pm
Forum: Ren'Py Questions and Announcements
Topic: Align columns in a vpgrid?
Replies: 4
Views: 363

Align columns in a vpgrid?

I want to display a row of information, but because each column in my rows have a different width, it messes up the alignment when I stack my rows together. Here is an example: vpgrid: ypos 150 xalign 0.5 xsize 1000 cols 1 spacing 3 draggable True mousewheel True scrollbars "vertical" side_xalign 1....
by newbiemate
Fri May 03, 2019 12:17 am
Forum: Ren'Py Questions and Announcements
Topic: Center words in a Text displayable?
Replies: 4
Views: 278

Re: Center words in a Text displayable?

Thanks!! text_align 0.5 works!
by newbiemate
Sat Apr 27, 2019 10:48 pm
Forum: Ren'Py Questions and Announcements
Topic: Center words in a Text displayable?
Replies: 4
Views: 278

Center words in a Text displayable?

I have a text title and an image: fixed: xpos 100 ypos 200 vbox: text "The Book of all the Things!" xanchor 0.5 anchor 0.5 xmaximum 80 add "images/book.png" xanchor 0.5 yanchor 0.5 This would display the words like this: The Book of all the Things! But I would like all the words, especially the word...