Search found 63 matches
- Fri Oct 28, 2022 12:06 pm
- Forum: Ren'Py Cookbook
- Topic: Simple card drawing framework
- Replies: 0
- Views: 95
Simple card drawing framework
Hi guys, I was tinkering with Renpy to create a simple minigame where you draw cards and choose any number of them to keep . It's pretty simple with just about 80 lines of code, but I'm happy with the way it turned out so I am sharing it. My mastery of screen language is pretty shaky, so I would lov...
- Sun Jan 16, 2022 6:14 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Silent crash on auto-reload
- Replies: 1
- Views: 337
Re: Silent crash on auto-reload
Okay, plot twist: This is not about my project at all, I can open "The Question", and still auto-reload crashes to desktop. This is on a clean install of Ren'py too. Edit: Turns out I have older versions of Ren'py still installed: 7.0.0 and 7.3.5 auto-reload correctly, but 7.4.9 and 7.4.11 both cras...
- Fri Jan 14, 2022 5:34 am
- Forum: Ren'Py Questions and Announcements
- Topic: Silent crash on auto-reload
- Replies: 1
- Views: 337
Silent crash on auto-reload
Hi, So I have a problem with auto-reload , it suddenly stopped working completely. Here is what happens: - I press Shift+R, auto-reload happens as normal - The new game state is actually loaded - Then the mouse cursor turns into a little rotating blue circle for half a second, and the game crashes t...
- Fri Feb 05, 2021 9:02 am
- Forum: Ren'Py Questions and Announcements
- Topic: How does ShowTransient work exactly?
- Replies: 2
- Views: 659
Re: How does ShowTransient work exactly?
I think that for the interaction to complete, your screen needs to return something. Try this (can't test it unfortunately): screen extra(): #Didn't use tag menu, I do want it to show on top of the main menu screen! frame: textbutton "Endings" action (ShowMenu("endings"), Return()) # textbutton "End...
- Fri Feb 05, 2021 8:58 am
- Forum: Ren'Py Questions and Announcements
- Topic: [SOLVED] Confused about interpolation using !i or !ti
- Replies: 5
- Views: 550
Re: Confused about interpolation using !i or !ti
Just to keep you guys updated; I couldn't get the double interpolation to work, but this works as intended:
Good enough for my purposes. Thank you for your help!
Code: Select all
label test_interpolation():
$ text1 = "Hello, [MC.name]."
$ girl(text1)
return- Fri Jan 29, 2021 9:27 am
- Forum: Ren'Py Questions and Announcements
- Topic: [SOLVED] Confused about interpolation using !i or !ti
- Replies: 5
- Views: 550
Re: Confused about interpolation using !i or !ti
Thank you, this is useful information. Unfortunately I don't think this relates to my problem: MC.name is a string, and is used everywhere without problems. This works fine, for instance: girl "Hello, [MC.name]" The game was originally created on Renpy 6.18.3 and updated with newer versions since.
- Thu Jan 28, 2021 6:20 am
- Forum: Ren'Py Questions and Announcements
- Topic: [SOLVED] Confused about interpolation using !i or !ti
- Replies: 5
- Views: 550
Re: Confused about interpolation using !i or !ti
Well, MC is a complex class but its 'name' property has nothing special to it, it's just a regular variable that gets assigned a string upon starting the game. label start: MC_name = "Nero" MC = Main() init python: class Main(object): """This class is for the main character.""" def __init__(self): s...
- Tue Jan 26, 2021 5:17 pm
- Forum: Ren'Py Questions and Announcements
- Topic: [SOLVED] Confused about interpolation using !i or !ti
- Replies: 5
- Views: 550
[SOLVED] Confused about interpolation using !i or !ti
Hi guys, So I'm looking at this part of the documentation: https://www.renpy.org/doc/html/text.html#interpolating-data But I cannot get this simple code to work: label test_interpolation(): $ text1 = "Hello, [MC.name]." girl "[text1!ti]" # text1!i doesn't work either return And then nothing happens ...
- Wed Jan 13, 2021 7:25 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Screen prediction when using the Function() action
- Replies: 5
- Views: 360
Re: Screen prediction when using the Function() action
Nope, everything is defined in .rpy files. The game object is used for a bunch of things in the game and works just fine otherwise.
- Wed Jan 13, 2021 1:14 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Screen prediction when using the Function() action
- Replies: 5
- Views: 360
Re: Screen prediction when using the Function() action
No, sorry game is an instance of Game() that gets created upon starting a new game. I should have mentioned that.
- Wed Jan 13, 2021 7:07 am
- Forum: Ren'Py Questions and Announcements
- Topic: Screen prediction when using the Function() action
- Replies: 5
- Views: 360
Screen prediction when using the Function() action
Hi guys, I'm a bit puzzled by this, searched the forum but couldn't find an answer. The 'Function()' screen action doesn't prevent screen prediction from running the function code. I have a difficulty setting screen which looks like this: screen set_diff(diff_settings): vbox spacing 6 box_wrap True:...
- Thu Oct 29, 2020 2:04 pm
- Forum: Ren'Py Questions and Announcements
- Topic: [SOLVED] Changing alpha on a button
- Replies: 2
- Views: 252
[SOLVED] Changing alpha on a button
It works! Thank you very much! 
- Thu Oct 29, 2020 8:55 am
- Forum: Ren'Py Questions and Announcements
- Topic: [SOLVED] Changing alpha on a button
- Replies: 2
- Views: 252
[SOLVED] Changing alpha on a button
Hi guys, I'm trying to set a simple button layout where the alpha on each button changes when it's selected, idle or hovered over. I want alpha to be: * 1.0 if the button is selected or hovered * 0.3 if the button is idle. I thought this simple screen would do it: screen buttons: default cl = "warri...
- Mon Jul 27, 2020 6:19 pm
- Forum: Ren'Py Questions and Announcements
- Topic: [Solved] Screen with timer doesn't 'hide' properly
- Replies: 2
- Views: 255
Re: Screen with timer doesn't 'hide' properly
Thank you, I had to reduce the timer to 0.1 to get the desired effect, but it now works! The animation is not very smooth, but that'll do...
- Mon Jul 27, 2020 6:17 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Text wrapping and button growth direction
- Replies: 4
- Views: 241
Re: Text wrapping and button growth direction
When you use 'align' or 'pos', it will not in fact target the whole widget: it will align one pixel and the rest will follow. Anchor set the coordinates of that pixel. Let's say you are showing a simple picture: using 'xanchor 0.0 yanchor 0.0' will align the first pixel on the top left to the set co...