Thank you so much! I totally overlooked that haha!hell_oh_world wrote: ↑Tue Dec 01, 2020 8:53 pm it says, that you can't use the define statement with preferences store.
If you'll look at this example: https://www.renpy.org/doc/html/preferen ... -variables
preference variable uses default statement instead.
Search found 24 matches
- Tue Dec 01, 2020 9:07 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Lowering BGM volume when characters talk
- Replies: 2
- Views: 541
Re: Lowering BGM volume when characters talk
- Tue Dec 01, 2020 8:50 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Lowering BGM volume when characters talk
- Replies: 2
- Views: 541
Lowering BGM volume when characters talk
Hello! I'm pretty new to coding, trying to figure out how to add in the preferences code from the wiki https://www.renpy.org/doc/html/preferences.html?highlight=volume#var-preferences.emphasize_audio so that when a character speaks using the voice channel, it makes the BGM through the sound channel ...
- Sun Aug 09, 2020 8:57 pm
- Forum: Ren'Py Questions and Announcements
- Topic: How to add custom Text box UI and animate it sliding in
- Replies: 5
- Views: 395
Re: How to add custom Text box UI and animate it sliding in
Oh, right, forgot to say this method replaces the textbox, so either just replace the current textbox image with a fully transparent one, or maybe just background None And to get it to work, all you'd do is paste my code into your project, probably above the start label where you have your characte...
- Sun Aug 09, 2020 8:32 pm
- Forum: Ren'Py Questions and Announcements
- Topic: How to add custom Text box UI and animate it sliding in
- Replies: 5
- Views: 395
Re: How to add custom Text box UI and animate it sliding in
Oh, right, forgot to say this method replaces the textbox, so either just replace the current textbox image with a fully transparent one, or maybe just background None And to get it to work, all you'd do is paste my code into your project, probably above the start label where you have your characte...
- Sun Aug 09, 2020 8:18 pm
- Forum: Ren'Py Questions and Announcements
- Topic: How to add custom Text box UI and animate it sliding in
- Replies: 5
- Views: 395
Re: How to add custom Text box UI and animate it sliding in
A possible solution to the show/hide problem. It uses a screen that checks if the say screen is being shown to control showing/hiding another screen. Just add show screen textbox_checker just after the start of the game. I tested it using full size (1920x1080) images, so you may need to adjust the ...
- Sun Aug 09, 2020 2:39 pm
- Forum: Ren'Py Questions and Announcements
- Topic: How to add custom Text box UI and animate it sliding in
- Replies: 5
- Views: 395
How to add custom Text box UI and animate it sliding in
Hello! As per my subject, I am looking to add new UI for the text box and nameplate, and am having some difficulties. Here is what my current UI design mockup is like. I have 2 separate images for the top and bottom portions of the UI: (the bottom and top images respectively) I'm mainly wanting to k...
- Sat May 09, 2020 6:14 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Ace Attorney style text beeps lagging text
- Replies: 0
- Views: 294
Ace Attorney style text beeps lagging text
As you can see in my title, I added Ace Attorney style text beeps that show when text is appearing in the text box. The problem is, it lags the text and the sound, no matter what sound effect I use. Is there anything I can do about this?
- Sun Feb 02, 2020 12:36 am
- Forum: Ren'Py Questions and Announcements
- Topic: Main menu buttons are gone, how to add them back in
- Replies: 6
- Views: 679
Re: Main menu buttons are gone, how to add them back in
Try uncommenting the "pause" command and see if that does anything. It's possible that the video doesn't wait to finish before moving to the next label. (The version I put in the code above is for 10.0 seconds, but you can also make it require a click to advance by using just "pause&...
- Sun Feb 02, 2020 12:32 am
- Forum: Ren'Py Questions and Announcements
- Topic: Main menu buttons are gone, how to add them back in
- Replies: 6
- Views: 679
Re: Main menu buttons are gone, how to add them back in
Try uncommenting the "pause" command and see if that does anything. It's possible that the video doesn't wait to finish before moving to the next label. (The version I put in the code above is for 10.0 seconds, but you can also make it require a click to advance by using just "pause&...
- Sat Feb 01, 2020 8:59 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Main menu buttons are gone, how to add them back in
- Replies: 6
- Views: 679
Re: Main menu buttons are gone, how to add them back in
Well, the first thing I can think of is: your title menu is the screen "main_menu", correct? If so, the screen definition here (if it even runs at all from inside a label) would probably overwrite the entire main menu screen. It would be a better idea to simply define the image as somethi...
- Sat Feb 01, 2020 6:54 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Main menu buttons are gone, how to add them back in
- Replies: 6
- Views: 679
Main menu buttons are gone, how to add them back in
Hello, I recently went and added a movie to play before the main menu screen appears, it transitions into it. But, upon adding this movie in, it messed up my previous definition of Main_Menu which had all the buttons show up, and now I'm not sure how to add them back, only so they show up after the ...
- Sat Feb 01, 2020 5:58 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Movies playing in incorrect size
- Replies: 8
- Views: 738
Re: Movies playing in incorrect size
...My gui.init is defined at (1920, 1080), as it should be, and does match the video file. ... Well, the size of video is 1440x1080 pxls. And it looks like Ren'Py don't want to change aspect ratio of the video, so it stretches/shrinks the video to make one of width/height fit the size you've set an...
- Sat Feb 01, 2020 5:29 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Movies playing in incorrect size
- Replies: 8
- Views: 738
Re: Movies playing in incorrect size
...My gui.init is defined at (1920, 1080), as it should be, and does match the video file. ... Well, the size of video is 1440x1080 pxls. And it looks like Ren'Py don't want to change aspect ratio of the video, so it stretches/shrinks the video to make one of width/height fit the size you've set an...
- Sat Feb 01, 2020 5:23 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Movies playing in incorrect size
- Replies: 8
- Views: 738
Re: Movies playing in incorrect size
It may be the format, mt2 isn't mentioned in the documentation as supported. https://www.renpy.org/doc/html/movie.html Wrong, m2t works and plays the video normally, and even if that were the case of it resizing because of that, that wouldn't explain why the webm one resizes itself despite being su...
- Sat Feb 01, 2020 4:51 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Movies playing in incorrect size
- Replies: 8
- Views: 738
Re: Movies playing in incorrect size
What's the game resolution? In gui.rpy check the lines ## Calling gui.init resets the styles to sensible default values, and sets the ## width and height of the game. init python: gui.init(1280, 720) Is it match the size of video? And could you attach the video file to let people test it? My gui.in...