Search found 31 matches

by OrsonDeWitt
Sat May 08, 2021 11:50 am
Forum: Ren'Py Questions and Announcements
Topic: Grayscaling & focus for tutorial?
Replies: 5
Views: 927

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: 1119

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: 1119

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: 1119

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: 1119

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: 1119

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: 1119

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: 291

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: 1119

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: 1119

[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: 444

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...
by OrsonDeWitt
Tue Aug 25, 2020 8:25 am
Forum: Ren'Py Questions and Announcements
Topic: Is it possible to highlight some text when hovering over button?
Replies: 6
Views: 444

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

Thanks a lot! Didn't think it would have been built in into renpy already. The documentation doesn't explain much, though, so I have no clue how to actually work with it. Say, I need s_1 to have 1 added to it and s_2 to have 2 subtracted when a choice is made, how should the code look like? Would ap...
by OrsonDeWitt
Sat Aug 22, 2020 12:41 pm
Forum: Ren'Py Questions and Announcements
Topic: Random Dialogue at the Push of a Button, random.randint Problem
Replies: 2
Views: 273

Re: Random Dialogue at the Push of a Button, random.randint Problem

Make the imagebutton go to label x,
then:

Code: Select all

label x:
	jump expression renpy.random.choice( ["icc6", "icc7", "icc8", "icc9", "icc10"] )
by OrsonDeWitt
Sat Aug 22, 2020 11:33 am
Forum: Ren'Py Questions and Announcements
Topic: Is it possible to highlight some text when hovering over button?
Replies: 6
Views: 444

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

True, but how would I call these booleans from inside a label?
Say, this is the dialogue:
menu:
yes: on hover boolean STAT1
no: on hover boolean STAT2 & STAT3

I would need to somehow have custom choice buttons that I can call from from within labels, each representing the right boolean(s)