Search found 2405 matches
- Tue Apr 09, 2024 3:04 am
- Forum: Ren'Py Questions and Announcements
- Topic: Render button with transform
- Replies: 2
- Views: 183
Re: Render button with transform
I am not completely sure how the first piece ofcode works, but you can wrap child in transform you need: # at the end of init self.child = Transform(child=self.child, matrixcolor=TintMatrix(self.current_text_color)) If you want to constantly chnage text color and make it reflect on text, then replac...
- Thu Apr 04, 2024 12:40 am
- Forum: Ren'Py Questions and Announcements
- Topic: [SOLVED] How to define persistable objects?
- Replies: 4
- Views: 165
Re: How to define persistable objects?
As persistent data is loaded before init python blocks are run, persistent data should only contain types that are native to Python or Ren'Py. Alternatively, classes that are defined in python early blocks can be used, provided those classes can be pickled and implement equality. My approach in sim...
- Sun Mar 31, 2024 5:16 pm
- Forum: Ren'Py Questions and Announcements
- Topic: KeyError: 'retain' when calling say with name argument
- Replies: 4
- Views: 179
Re: KeyError: 'retain' when calling say with name argument
I'm actually not sure what you are doing here. What is this "character" object you are using and why? https://www.renpy.org/doc/html/dialogue.html#the-character-store Are you trying to load save and getting this error afterwards? If so, then default is the problem. Character objects are n...
- Sun Mar 31, 2024 12:19 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Animated imagebutton in main menu[sloved]
- Replies: 3
- Views: 257
Re: Animated imagebutton in main menu
Button without any actions will not receive any events. If you want hover events to work, you need to provide an action. You can use a built-in action which does not do anything, called NullAction()
- Sat Mar 30, 2024 3:15 pm
- Forum: Ren'Py Questions and Announcements
- Topic: how to make a loading screen where the player is reminded of what happened at a previous point in the plot?
- Replies: 2
- Views: 155
Re: how to make a loading screen where the player is reminded of what happened at a previous point in the plot?
Always have data you want to show after loading up to date in your game, and then use after_load special label to show some screens telling player what happened before. https://www.renpy.org/doc/html/label.html#special-labels Example: default happened_before = ["you have started the game"]...
- Sat Mar 30, 2024 3:06 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Quest System Screen Problem
- Replies: 5
- Views: 334
Re: Quest System Screen Problem
As for this question -> Nope, it is not. Well... Actually it is, just not in the way I thought. ShowMenu shows screen in the menu context, while that screen is shown, you are not in the main game, and jumping from there will not affect main game flow. As soon as you finish showing screen or return ...
- Tue Mar 26, 2024 3:53 pm
- Forum: Ren'Py Questions and Announcements
- Topic: [Solved?] Can't stop errant sound playing after a save load
- Replies: 12
- Views: 417
Re: Can't stop errant sound playing after a save load
By the way, there is not function "renpy.sound.stop()", but I guess that's just a typo, right? There... is? https://www.renpy.org/doc/html/audio.html#renpy.music.stop Most renpy.music functions have aliases in renpy.sound . These functions are similar, except they default to the sound cha...
- Tue Mar 26, 2024 4:27 am
- Forum: Ren'Py Questions and Announcements
- Topic: [solved] Using videos as button?
- Replies: 5
- Views: 324
Re: Using videos as button?
A modified version of your approach seems to work: screen video_test_screen: default ap = 0.0 button: action NullAction() hovered SetScreenVariable("ap", 1) unhovered SetScreenVariable("ap", 0) has fixed fit_first True add "video idle" add "video hover": alpha...
- Tue Mar 26, 2024 4:21 am
- Forum: Ren'Py Questions and Announcements
- Topic: [solved] Using videos as button?
- Replies: 5
- Views: 324
Re: Using videos as button?
Interesting. Defining videos as image video_idle: animation Movie(play="images/MOV_Achenar_Page_00.mp4") and using them as background / hover_background works with a single caveat: hover video is only started when button is hovered for the first time. Then it is played uninterrupted as int...
- Tue Mar 26, 2024 3:17 am
- Forum: Ren'Py Questions and Announcements
- Topic: Quest System Screen Problem
- Replies: 5
- Views: 334
Re: Quest System Screen Problem
Is, by any chance, your quest overview screen a part of the game menu (the one you get when you press ESC)?
- Thu Mar 21, 2024 4:37 am
- Forum: Ren'Py Questions and Announcements
- Topic: How to add opening movie to visual novel
- Replies: 1
- Views: 203
- Thu Mar 21, 2024 3:14 am
- Forum: Ren'Py Questions and Announcements
- Topic: Label as main menu background
- Replies: 5
- Views: 259
Re: Label as main menu background
You cannot simply add random code and expect it to work. ATL has different syntax from both RenPy script and SL, so you'll need more complex approach. This, for example will change bachground from red to green and back every 3 seconds: init python: def change_image(trans, st, at): if (at // 3) % 2 =...
- Wed Mar 20, 2024 3:52 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Label as main menu background
- Replies: 5
- Views: 259
Re: Label as main menu background
a) Use timers that change varable controlling current image.
b) CDD which change rendered image based on elapsed time
c) Potentially ATL animation which has a funtcion statement changing child of transform.
b) CDD which change rendered image based on elapsed time
c) Potentially ATL animation which has a funtcion statement changing child of transform.
- Wed Mar 20, 2024 4:49 am
- Forum: Ren'Py Questions and Announcements
- Topic: Label as main menu background
- Replies: 5
- Views: 259
Re: Label as main menu background
If main_menu label exist, it will be executed, instead of showing the main menu screen. Note that you will be responsible for shwing and handling all menu screens in this case.
An alternative approach is to convert you code into a screen and use that instead.
An alternative approach is to convert you code into a screen and use that instead.
- Wed Mar 13, 2024 3:32 am
- Forum: Ren'Py Questions and Announcements
- Topic: Strategy for distribution of large games (> 5GB)?
- Replies: 5
- Views: 238
Re: Strategy for distribution of large games (> 5GB)?
We regularly get over 1,200 downloads for each released version, so transfer charges are a definite concern. We already got hit with a (extremely) huge fee when distributing files using Gofile one release. We're using anonymous transfers now, but it involves manually downloading every file occasion...