Search found 42 matches

by abysswatcher
Tue Feb 02, 2021 3:10 am
Forum: Ren'Py Questions and Announcements
Topic: Countdown timer with milliseconds
Replies: 1
Views: 340

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?
by abysswatcher
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: 279

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 the...
by abysswatcher
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: 279

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.Displayable, self).__init__(*args...
by abysswatcher
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: 2951

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?
by abysswatcher
Thu Oct 15, 2020 3:28 am
Forum: Ren'Py Questions and Announcements
Topic: [solved] stats menu
Replies: 3
Views: 408

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 "stats" vbox: text "Your empat...
by abysswatcher
Fri Oct 09, 2020 4:00 am
Forum: Ren'Py Questions and Announcements
Topic: [Solved]Update sceen variables in realtime
Replies: 3
Views: 342

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...
by abysswatcher
Fri Oct 09, 2020 2:23 am
Forum: Ren'Py Questions and Announcements
Topic: [Solved]Update sceen variables in realtime
Replies: 3
Views: 342

[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, 'yiguandao':0 ...
by abysswatcher
Fri Aug 14, 2020 8:14 am
Forum: Ren'Py Cookbook
Topic: A Tooltip whose x/y position follows the mouse's.
Replies: 10
Views: 3642

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.
by abysswatcher
Tue Aug 11, 2020 6:19 pm
Forum: Ren'Py Questions and Announcements
Topic: Is this code ineffecient?
Replies: 1
Views: 233

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...
by abysswatcher
Tue Aug 11, 2020 6:17 pm
Forum: Ren'Py Questions and Announcements
Topic: Is this code ineffecient?
Replies: 0
Views: 270

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...
by abysswatcher
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: 203

[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_bookma...
by abysswatcher
Fri Jul 17, 2020 5:19 am
Forum: Ren'Py Cookbook
Topic: FancyText: Effects for Slow Text Display
Replies: 11
Views: 2248

Re: FancyText: Effects for Slow Text Display

This is really cool! Thanks for the amazing code and effects!
by abysswatcher
Wed Jul 15, 2020 7:46 am
Forum: Ren'Py Questions and Announcements
Topic: Choice screen and custom object
Replies: 0
Views: 255

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.png") screen status_show(...
by abysswatcher
Wed Jul 01, 2020 9:45 pm
Forum: Ren'Py Questions and Announcements
Topic: Menu buttons have individual styles
Replies: 3
Views: 328

Re: Menu buttons have individual styles

Per K Grok wrote:
Wed Jul 01, 2020 9:30 am
You could try this

Code: Select all

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 :)
by abysswatcher
Wed Jul 01, 2020 8:08 am
Forum: Ren'Py Cookbook
Topic: Simple Choice logging system
Replies: 4
Views: 822

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...