Search found 9 matches
- Thu Jun 13, 2024 11:26 pm
- Forum: Ren'Py Questions and Announcements
- Topic: How to trigger an event when a meter reaches its max
- Replies: 8
- Views: 246
Re: How to trigger an event when a meter reaches its max
You can use python callbacks. It will continuously run the function and will check for the variable in the background https://www.renpy.org/doc/html/config.html#var-config.python_callbacks You can see an example in the below forum ask https://lemmasoft.renai.us/forums/viewtopic.php?p=470226&hili...
- Fri May 31, 2024 6:06 am
- Forum: Ren'Py Questions and Announcements
- Topic: [SOLVED] Writing more concise code
- Replies: 5
- Views: 205
Re: Writing more concise code
I guess you could make a function and add the python equivalents of the pause, show and hide statements. Then pass the variable stuff like time and image to it. https://www.renpy.org/doc/html/statement_equivalents.html https://www.renpy.org/doc/html/statement_equivalents.html#renpy.hide https://www....
- Sun Feb 04, 2024 8:34 am
- Forum: Ren'Py Questions and Announcements
- Topic: [Solved] Passing a variable to bubble screen on a specific dialogue line
- Replies: 2
- Views: 585
Re: Passing a variable to bubble screen on a specific dialogue line
Again, thanks a lot!!!
- Sun Feb 04, 2024 8:32 am
- Forum: Ren'Py Questions and Announcements
- Topic: [Solved] Applying transform on window within say_arguments_callback function
- Replies: 4
- Views: 430
Re: Applying transform on window within say_arguments_callback function
Yes! It's working with the two variables separated like that.
Thanks so much!!!
Thanks so much!!!
- Sun Feb 04, 2024 7:05 am
- Forum: Ren'Py Questions and Announcements
- Topic: [Solved] Applying transform on window within say_arguments_callback function
- Replies: 4
- Views: 430
Re: Applying transform on window within say_arguments_callback function
I used the shake as an example. When I try passing a variable to bubble, it doesn't have any effect, but passing to the say screen works. So I needed to find a more general way to manipulate both bubble and say screens. I was able to manipulate the what properties for both say and bubble dialogue ty...
- Sat Feb 03, 2024 5:21 am
- Forum: Ren'Py Questions and Announcements
- Topic: [Solved] Applying transform on window within say_arguments_callback function
- Replies: 4
- Views: 430
[Solved] Applying transform on window within say_arguments_callback function
I want to apply a shake effect to the say window. How do I access the window within the callback code? def say_arguments_callback(char, shake_toggle = False, *args, **kwargs): if shake_toggle: #<window transform> kwargs["what_color"] = "#000" Thanks in advance!
- Thu Feb 01, 2024 5:32 am
- Forum: Ren'Py Questions and Announcements
- Topic: [Solved] Passing a variable to bubble screen on a specific dialogue line
- Replies: 2
- Views: 585
[Solved] Passing a variable to bubble screen on a specific dialogue line
I have one dialog line where I want to implement a shake effect hyd_s "Everything ready?" (shake_toggle = True) The character is defined as a bubble type define hyd_s = Character( None , image="hyd" , kind=bubble , what_color="#80b847" , what_font = gui.hyd_font , what_...
- Thu Feb 01, 2024 4:06 am
- Forum: Ren'Py Questions and Announcements
- Topic: Changing speech bubble properties for a specific line of dialog
- Replies: 2
- Views: 436
Re: Changing speech bubble properties for a specific line of dialog
I wanted to know if there was any way of not having to do it manually. Like maybe even pass some sort of flag to the bubble screen. I do have a workaround where I define a style in scripts.rpy and then pass the what_style directly. hyd_s "Everything ready?" (what_style = "shout_voice&...
- Wed Jan 31, 2024 11:41 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Changing speech bubble properties for a specific line of dialog
- Replies: 2
- Views: 436
Changing speech bubble properties for a specific line of dialog
I have the following character definition define hyd_s = Character( None , image="hyd" , kind=bubble , what_color="#80b847" , what_font = gui.hyd_font , what_bold = True , what_outlines = [ (absolute(0), "#000", absolute(2), absolute(2)) ] , window_xpos = 0.5 , window_x...