Search found 113 matches
- Wed Jan 06, 2021 5:55 am
- Forum: Ren'Py Questions and Announcements
- Topic: [Solved] On hover animation
- Replies: 4
- Views: 498
[Solved] On hover animation
Hi! I have a section of my game which is like a point and click, for which I'm implementing items that are on the screen waiting for the player to click on them. My problem is with the transform that goes with the items, which are buttons. I implemented a kind of "shaking" effect, which works well, ...
- Tue Dec 08, 2020 11:49 am
- Forum: Ren'Py Questions and Announcements
- Topic: [Solved] Center a variable amount of buttons inside a hbox
- Replies: 5
- Views: 333
Re: Center a variable amount of buttons inside a hbox
you can try eliminating the possible problems. try a simple displayable first like a frame, just in like in the example, if it works then probably the way you created the buttons is the cause (styles, the background image itself, etc.) Okay, the problem was so obvious I'm ashamed. The problem was t...
- Tue Dec 08, 2020 11:22 am
- Forum: Ren'Py Questions and Announcements
- Topic: [Solved] Center a variable amount of buttons inside a hbox
- Replies: 5
- Views: 333
Re: Center a variable amount of buttons inside a hbox
hbox: xalign 0.5 When I say "I've been trying" it means that I've tried the most basic things... Thank you, though! The thing is that when I xaling the hbox, the buttons are still aligned to the left. When there are two buttons, the first one appears at the same pixel as the only button when there'...
- Tue Dec 08, 2020 11:06 am
- Forum: Ren'Py Questions and Announcements
- Topic: [Solved] Center a variable amount of buttons inside a hbox
- Replies: 5
- Views: 333
[Solved] Center a variable amount of buttons inside a hbox
Hi all! Okay, so in a screen, I have a space where I want to display a different number of buttons, from 0 to 7, and I want that, no matter the number of buttons displayed, they're always centered. To put an example ASCII-style, if X is a button, if there's only one button, it has to be displayed li...
- Sat Aug 08, 2020 4:28 am
- Forum: Ren'Py Questions and Announcements
- Topic: Action to end more than one consecutive replay
- Replies: 1
- Views: 306
Re: Action to end more than one consecutive replay
Can anyone help me here?
- Thu Jul 30, 2020 9:32 am
- Forum: Ren'Py Questions and Announcements
- Topic: Action to end more than one consecutive replay
- Replies: 1
- Views: 306
Action to end more than one consecutive replay
Hi mates! So I have a few buttons that play three consecutive replays, like this: Replay("{0}pre4".format(girl.id)), Replay("gal{0}4".format(girl.id), locked=False), Replay("{0}4".format(girl.id)) And I have in my game menu the default button that comes with RenPy to end a replay: EndReplay(confirm=...
- Wed May 06, 2020 9:25 am
- Forum: Ren'Py Questions and Announcements
- Topic: [Solved] Centering all the lines in a text statement
- Replies: 3
- Views: 247
Re: Centering all the lines in a text statement
The reason they don't align is because renpy is treating them as a single text block. In order to have them center align you have to create a text element for each line, align them to center, and pack them in a vbox. Something like this: screen lines(line_list): vbox: for line in line_list: text li...
- Wed May 06, 2020 8:05 am
- Forum: Ren'Py Questions and Announcements
- Topic: [Solved] Centering all the lines in a text statement
- Replies: 3
- Views: 247
[Solved] Centering all the lines in a text statement
Hi guys! So I have objects in a class of which name I want to display in a text statement inside a screen, depending on which object is displayed, like this: text "[item.name]" xpos xt+115 ypos yt+8 xanchor 0.5 size 15 font "BRLNSR.ttf" at girlsbuttons And I get this. Each text next to the correspon...
- Sun May 03, 2020 3:14 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Showing game stats on file slots?
- Replies: 24
- Views: 849
Re: Showing game stats on file slots?
Alright, I can say I FINALLY did it! And it was just as simple as using the JSON. I've known since the beginning this was the best way to do this, but I wasn't sure about how to do it properly. Turns out that I was retrieving the json data in a wrong way. Now I just have it like this: def saveinfo(d...
- Sun May 03, 2020 1:10 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Showing game stats on file slots?
- Replies: 24
- Views: 849
Re: Showing game stats on file slots?
I'm seeing that the hours, minutes, and maxnums are not complex variables at all... if they're are just numbers then it should work. if not the encoder might throw an error as the data is not serializable, for that, i edited my code to prevent that error from happening, non-saveable data will not b...
- Sun May 03, 2020 8:53 am
- Forum: Ren'Py Questions and Announcements
- Topic: Showing game stats on file slots?
- Replies: 24
- Views: 849
Re: Showing game stats on file slots?
well, don't use old saves... after applying my suggestion, i suggest, deleting the persistent data and save files in the game directory and by going to launcher and pressing delete persistent. also make sure that you have removed all the variables that are not necessary or that was previously inclu...
- Sun May 03, 2020 8:11 am
- Forum: Ren'Py Questions and Announcements
- Topic: Showing game stats on file slots?
- Replies: 24
- Views: 849
Re: Showing game stats on file slots?
well, don't use old saves... after applying my suggestion, i suggest, deleting the persistent data and save files in the game directory and by going to launcher and pressing delete persistent. also make sure that you have removed all the variables that are not necessary or that was previously inclu...
- Sun May 03, 2020 7:56 am
- Forum: Ren'Py Questions and Announcements
- Topic: Showing game stats on file slots?
- Replies: 24
- Views: 849
Re: Showing game stats on file slots?
That should not happen, imo. The save name is dependent on the save name stored in each save file. I know there are already a lot of suggestions, but this is how I'll make something like this. This code should auto update the save_name variable before saving... Edit: just tested it, and its working...
- Sun May 03, 2020 6:03 am
- Forum: Ren'Py Questions and Announcements
- Topic: Showing game stats on file slots?
- Replies: 24
- Views: 849
Re: Showing game stats on file slots?
Guys, I've tried just by giving the variable save_name a string with all the variables and even a few interpolated images, but the outcome is just about the same as with Alex's code. Seems the problem here are the variables themselves, as they won't be stored and be displayed while in the main menu....
- Sat May 02, 2020 4:19 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Showing game stats on file slots?
- Replies: 24
- Views: 849
Re: Showing game stats on file slots?
... Looks like you ought to move all the sizing and other stuff to the 'save_slot' screen. In 'test_save_scr' then you can use your own variables, like $ store.save_name = name+", "+job+"|"+money+"|"+clef+"|"+hours+" h and "+minutes+" m in town"+"|"+metnum+"|"+maxnum+"|"+songs hbox: text "{size=16}...