Search found 34 matches

by OrsonDeWitt
Thu Jul 15, 2021 9:20 am
Forum: Ren'Py Questions and Announcements
Topic: Side images that stay on screen?
Replies: 4
Views: 1123

Re: Side images that stay on screen?

Okay, I have figured it out. Indeed, I did not have to use side images for this, and I did not even have to use "show" for this. If anyone is going to be looking for a solution, here's mine: (and a bonus question at the end) - script.rpy: default interlocutors = [] # we start with an empty list whic...
by OrsonDeWitt
Tue Jul 06, 2021 7:06 am
Forum: Ren'Py Questions and Announcements
Topic: Side images that stay on screen?
Replies: 4
Views: 1123

Re: Side images that stay on screen?

Imperf3kt wrote:
Mon Jul 05, 2021 5:39 pm
You probably want a character callback.
https://www.renpy.org/doc/html/characte ... -callbacks
I probably do, but I've been reading for hours and unfortunately have not found a way to achieve this.
by OrsonDeWitt
Mon Jul 05, 2021 4:14 pm
Forum: Ren'Py Questions and Announcements
Topic: Side images that stay on screen?
Replies: 4
Views: 1123

Side images that stay on screen?

Hello. I have looked through dozens of forum posts with similar discussions, but after trying all of them, nothing seems to work for my particular case. I have recently begun working on the visual side of my game and, despite thinking that it would be easy enough, have hit a roadblock that I can't o...
by OrsonDeWitt
Sat May 08, 2021 11:50 am
Forum: Ren'Py Questions and Announcements
Topic: Grayscaling & focus for tutorial?
Replies: 5
Views: 951

Grayscaling & focus for tutorial?

Hi! I've been trying to make a tutorial for my game, wherein as everything is explained it is also highlighted with a contour, or the whole of the screen is made into grayscale except for the part of the screen in question (say, as a colored square while everything else is gray). I assume Renpy does...
by OrsonDeWitt
Fri Nov 20, 2020 4:47 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Animate variables when they are updated?
Replies: 15
Views: 1145

Re: Animate variables when they are updated?

Alternatively, you can just do this, short but a neat trick, passing variables around atl makes them dynamic on each interaction restart. transform animation_update(var): # make an argument where we can receive the variable. alpha 0.0 easein 0.25 alpha 1.0 default var = 1 screen something(): vbox: ...
by OrsonDeWitt
Fri Nov 20, 2020 1:23 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Animate variables when they are updated?
Replies: 15
Views: 1145

Re: Animate variables when they are updated?

Am I right that you want the transform to happen only when the variable svar is changed? And not when you click on other elements that can result in 'update' event of the screen? One option to do it is to use another variable to track if svar is changed. You can modify your screen test like this: s...
by OrsonDeWitt
Thu Nov 19, 2020 1:55 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Animate variables when they are updated?
Replies: 15
Views: 1145

Re: Animate variables when they are updated?

'On update' is triggered every time the screen is updated. It is not directly related to the variable svar or the screen 'test' itself. HUD screen can also trigger 'on update' for screen 'test' . I am not quite sure why it is triggered when you hover over elements of HUD screen. I believe you have ...
by OrsonDeWitt
Wed Nov 18, 2020 10:51 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Animate variables when they are updated?
Replies: 15
Views: 1145

Re: Animate variables when they are updated?

Why is it triggered whenever I hover over UI elements in HUD screen then...? Do you mean on hover and on idle statements in transform? On update is triggered for direct children and each of them updated its content/children without passing on update to each individual element. On hover and on idle ...
by OrsonDeWitt
Tue Nov 17, 2020 5:22 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Animate variables when they are updated?
Replies: 15
Views: 1145

Re: Animate variables when they are updated?

_ticlock_ wrote:
Tue Nov 17, 2020 5:03 pm
However, the transform will not be triggered in this case:
Why is it triggered whenever I hover over UI elements in HUD screen then...?
by OrsonDeWitt
Tue Nov 17, 2020 4:06 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Animate variables when they are updated?
Replies: 15
Views: 1145

Re: Animate variables when they are updated?

I don't know what you did. But my code works exactly well iirc. I even tried it before, so maybe you're missing something? Perhaps an issue with the Ren'Py version you're using? Not sure. You're right, it works! I was trying to test it like this: screen test(): vbox: textbutton "increment" action S...
by OrsonDeWitt
Mon Oct 12, 2020 10:47 am
Forum: Ren'Py Questions and Announcements
Topic: expected label name not found .. but the button finds it?
Replies: 2
Views: 296

Re: expected label name not found .. but the button finds it?

I think your issue is that you're using quotation marks. It should be

Code: Select all

jump toNight
Also, return can only be used when you're doing

Code: Select all

call toNight
by OrsonDeWitt
Mon Oct 12, 2020 10:13 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Animate variables when they are updated?
Replies: 15
Views: 1145

Re: Animate variables when they are updated?

hell_oh_world wrote:
Fri Sep 18, 2020 7:43 am
should be a good example.
Thanks, hell_oh_world! But unfortunately it does not seem to do anything. I've tried different effects and none of them fires, the variable just changes as always does with no effect whatsoever. :/
by OrsonDeWitt
Fri Sep 18, 2020 3:00 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Animate variables when they are updated?
Replies: 15
Views: 1145

[SOLVED] Animate variables when they are updated?

Hello experts of Ren'py :) I've been wondering for a while now about the way I could make a variable on the HUD blink/transform/whatever (for a sec) after the player has a made a choice and the variable has changed? Couldn't find anything on the forums... I'm using menu arguments (to highlight varia...
by OrsonDeWitt
Tue Aug 25, 2020 11:24 am
Forum: Ren'Py Questions and Announcements
Topic: Is it possible to highlight some text when hovering over button?
Replies: 6
Views: 453

Re: Is it possible to highlight some text when hovering over button?

hell_oh_world, thanks a lot for your help! Unfortunately it doesn't do anything on hover... Here's the code I've tried in my choices screen: default var = None default agriculture = 0 ... text "agriculture: {}".format(agriculture): if var == "var_1": color "#f00" # colors this red if the var is hove...