Search found 42 matches
- Tue Feb 02, 2021 3:10 am
- Forum: Ren'Py Questions and Announcements
- Topic: Countdown timer with milliseconds
- Replies: 1
- Views: 682
Countdown timer with milliseconds
I was wondering how to go about making a countdown time with seconds and milliseconds. I just thought it would look better in the game. Is there any way to bring this about in ren'py?
- Mon Nov 02, 2020 11:54 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Renpy mousetooltip won't show up on screen
- Replies: 2
- Views: 565
Re: Renpy mousetooltip won't show up on screen
Which version of renpy are you using? There was an issue with 7.3.5 that got a fix. https://lemmasoft.renai.us/forums/viewtopic.php?f=51&t=47205#p533067 Or are you using the prerelease renpy 7.4? Well, I did use that fix and I'm on ver 7.3.5. I don't know why tooltips in the screen doesn't show...
- Mon Nov 02, 2020 7:46 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Renpy mousetooltip won't show up on screen
- Replies: 2
- Views: 565
Renpy mousetooltip won't show up on screen
I used this renpy mousetooltip from the renpy cookbook: init -1500 python: class MouseTooltip(Tooltip, renpy.Displayable): """A Tooltip whose x/y position follows the mouse's.""" action = Action def __init__(self, default, padding=None, *args, **kwargs): super(renpy.Dis...
- Mon Nov 02, 2020 6:57 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Extending Ren'Py visuals with custom OpenGL shaders
- Replies: 9
- Views: 4337
Re: Extending Ren'Py visuals with custom OpenGL shaders
Sorry for necro,
I was wondering if there was a way to define these as image. For example defining a wind effect image in an image block so you can add it to scenes and screens alike. What would that kind of supporting code look like or be implemented?
I was wondering if there was a way to define these as image. For example defining a wind effect image in an image block so you can add it to scenes and screens alike. What would that kind of supporting code look like or be implemented?
- Thu Oct 15, 2020 3:28 am
- Forum: Ren'Py Questions and Announcements
- Topic: [solved] stats menu
- Replies: 3
- Views: 513
Re: stats menu
Okay, so here's the deal. I want to add a stats menu that can be opened in the game menu at any point while playing. This is what the code looks like, which I put into my screens file. screen stats(): tag menu use game_menu(_("stats"), scroll="viewport"): style_prefix "stat...
- Fri Oct 09, 2020 4:00 am
- Forum: Ren'Py Questions and Announcements
- Topic: [Solved]Update sceen variables in realtime
- Replies: 3
- Views: 417
Re: Update sceen variables in realtime
Things i've noticed: 1. looks like you're trying to make the variable change overtime, default it instead of defining it. 2. In your code you did something like MwBelief['christian'] + 2 , which just basically adds the value of Christian and 2, but the added value is not assigned at all so that's w...
- Fri Oct 09, 2020 2:23 am
- Forum: Ren'Py Questions and Announcements
- Topic: [Solved]Update sceen variables in realtime
- Replies: 3
- Views: 417
[Solved]Update sceen variables in realtime
I have the following code: init python: x=0 def GetMax(d): while x<1: try: return max(d, key=lambda key: d[key]) except: raise Exception("value did not get returned.") define MwBelief = { 'atheism':2, 'buddhism':3, 'christian':1, 'communism':-2, 'islam':-1, 'shintoism':-2, 'taoism':1, 'yig...
- Fri Aug 14, 2020 8:14 am
- Forum: Ren'Py Cookbook
- Topic: A Tooltip whose x/y position follows the mouse's.
- Replies: 13
- Views: 8647
Re: A Tooltip whose x/y position follows the mouse's.
Is there a way to make the text appear at the top? It seems that sometimes it gets hidden by other screen elements.
- Tue Aug 11, 2020 6:19 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Is this code ineffecient?
- Replies: 1
- Views: 288
Is this code ineffecient?
I have been using this screen code so that I can use this screen in my other screens and easily have a working keypad to make things easier for the player. This screen as seen below uses a lot of if-elif statements and I am not sure if I'm right but doesn't that mean that for every frame it checks w...
- Tue Aug 11, 2020 6:17 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Is this code ineffecient?
- Replies: 0
- Views: 320
Is this code ineffecient?
I have been using this screen code so that I can use this screen in my other screens and easily have a working keypad to make things easier for the player. This screen as seen below uses a lot of if-elif statements and I am not sure if I'm right but doesn't that mean that for every frame it checks w...
- Sun Jul 26, 2020 10:02 pm
- Forum: Ren'Py Questions and Announcements
- Topic: [solved]Error when trying to receive a key from value
- Replies: 1
- Views: 252
[solved]Error when trying to receive a key from value
I have been trying to get the max value from a dictionary and then getting the key for max value. Every method I try brings up the same issue: I'm sorry, but an uncaught exception occurred. While running game code: File "game/TO_LIVE_SCRIPT/ERA ONE/1937 DAY ONE[7-9-37]/_1937_sino_japanese_war_b...
- Fri Jul 17, 2020 5:19 am
- Forum: Ren'Py Cookbook
- Topic: FancyText: Effects for Slow Text Display
- Replies: 20
- Views: 10065
Re: FancyText: Effects for Slow Text Display
This is really cool! Thanks for the amazing code and effects!
- Wed Jul 15, 2020 7:46 am
- Forum: Ren'Py Questions and Announcements
- Topic: Choice screen and custom object
- Replies: 0
- Views: 297
Choice screen and custom object
I wrote up this code for a "status message" system below: init python: import renpy.store as store class status(store.object): def __init__(self, name, image): self.name = name self.image = image define status_warning = status("Light Warning", "images/notify_icons/icon.5_02....
- Wed Jul 01, 2020 9:45 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Menu buttons have individual styles
- Replies: 3
- Views: 445
Re: Menu buttons have individual styles
You could try this menu: "This is a question" "This is an answer": jump start "This is an other answer": jump start "{color=#F00}This is an answer of a different color{/color}": jump start That's a good idea! Thanks for this :)
- Wed Jul 01, 2020 8:08 am
- Forum: Ren'Py Cookbook
- Topic: Simple Choice logging system
- Replies: 4
- Views: 1263
Re: Simple Choice logging system (don't need to define 1000 variables)
Unless I misunderstand, I think the problem being solved here is already supported by Ren'Py proper - check out the menu set functionality (link below). It's implementation (using a set rather than a list) also addresses some of the concerns raised by Human Bolt Diary . https://www.renpy.org/doc/ht...