Search found 154 matches
- Mon Sep 09, 2019 4:43 am
- Forum: Ren'Py Questions and Announcements
- Topic: Detecting another window
- Replies: 8
- Views: 652
Re: Detecting another window
It'd be far less intrusive to the player if you were to opt instead for an idle timer which simply triggers such a message after X minutes of inactivity. Then it doesn't matter if the user was using another program, or writing in their diary, or had gone to make dinner, the message would still be va...
- Sun Sep 08, 2019 8:38 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Keeping "say" box and dialogue on screen during scene transitions
- Replies: 5
- Views: 602
Re: Keeping "say" box and dialogue on screen during scene transitions
Is it possible to keep the say box and the dialogue during screen transitions? I don't mind if it shows the old dialogue or the new one during that transition. You can do this by using layer-scoped transitions. scene expression Solid('#ff7') 'MC' "I just told you, I don?t want you to go, at least n...
- Mon Sep 02, 2019 8:17 am
- Forum: Ren'Py Questions and Announcements
- Topic: Is there a way to stop Roll Forward?
- Replies: 3
- Views: 659
Re: Is there a way to stop Roll Forward?
It is possible via manipulation of renpy internals, which is to say "yes, but it's not officially supported". label start: 'a' 'b' 'c' $ del renpy.game.log.forward[:] # clears roll forward log, roll forward will end at the next interaction 'd' 'e' return This will make 'd' the last roll forward poin...
- Mon Sep 02, 2019 7:30 am
- Forum: Ren'Py Questions and Announcements
- Topic: [solved] can somebody test this code and tell me the result please
- Replies: 12
- Views: 772
Re: [solved] can somebody test this code and tell me the result please
Just a small addition to note that for the test case a dict isn't a good choice of structure; neither the unique key nor lookup properties of a dict at being used, yet there is a desire for the data to remain ordered, if that's the extent of it then as someone already noted a simple list would solve...
- Sat Jul 27, 2019 9:37 am
- Forum: Ren'Py Questions and Announcements
- Topic: Changing MainScreen using Import Time.
- Replies: 6
- Views: 637
Re: Changing MainScreen using Import Time.
Your initial code had only two real issues, the first was that by setting hour (and the other time variables) during init they'd be locked to the point in time that the game started and never be updated. Imperf3kt's version solved this by moving the setting of those variables inside the screen defin...
- Tue Jun 18, 2019 6:33 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Displayable as underline?
- Replies: 0
- Views: 526
Displayable as underline?
I don't think this is possible out of the box, and I couldn't find anything obviously tackling this in a quick search so I figured I'd just ask: Is it possible, or does anyone have anyone have suggestions about using a tiled displayable as an underline? My first thought was to use the {image} tag in...
- Thu Jun 06, 2019 7:54 pm
- Forum: Ren'Py Questions and Announcements
- Topic: [Solved] Variable character names not using window background
- Replies: 4
- Views: 615
Re: Variable character names not using window background
Try making the name variable different from the character variable, i.e. npca and npca_name. I suspect you're currently overwriting the defined character with a string when you do $ npca = "Cheering Man".
- Thu Jun 06, 2019 12:55 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Import named store variable from other files
- Replies: 4
- Views: 682
Re: Import named store variable from other files
init python and define are both init-time statements. Files are executed in unicode sort order based on their file name, so this won't work because when the define is executed the mystore module hasn't yet been populated: 01use.rpy define variable = mystore.variable() # will error 02define.rpy init...
- Mon Jun 03, 2019 5:01 pm
- Forum: Ren'Py Questions and Announcements
- Topic: On press hotspot opens PopUp
- Replies: 5
- Views: 788
Re: On press hotspot opens PopUp
Need take both responses so far and glue them together! - Put a pause and/or a jump to where it should go after showing the screen Using a jump after showing the popup will ensure that you stay in the same room, instead of accidentally ending up in the bathroom code: elif _return == "casa_hallway": ...
- Sun Jun 02, 2019 8:11 pm
- Forum: Ren'Py Questions and Announcements
- Topic: AlphaMasking an animated transform seems not to work
- Replies: 4
- Views: 918
Re: AlphaMasking an animated transform seems not to work
Thanks both! Good call with the DynamicDisplayable , took the idea and ran with it a bit so that it's no longer necessary to know the size of the child displayable, and added a nice friendly method for reuse. init python: def pan_up(st, at, disp, time): return Transform(disp, crop=(0, st % time / ti...
- Sun Jun 02, 2019 4:17 pm
- Forum: Ren'Py Questions and Announcements
- Topic: [Solved] is it possible to use IF NOT statement ?
- Replies: 3
- Views: 644
Re: is it possible to use IF NOT statement ?
Believe that ought to be:
No second if keyword.
Code: Select all
if grainee >=1 and not graineplanter:
- Sat May 25, 2019 11:43 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Screen w/ Imagemap that Hides Screen
- Replies: 2
- Views: 537
Re: Screen w/ Imagemap that Hides Screen
Haven't had a chance to test, but I think what you want is: action Hide('ad1') (note the capitialisation and quoting). The docs for the Hide action can be found here: https://www.renpy.org/doc/html/screen_actions.html#Hide
Good luck!
Good luck!
- Sat May 25, 2019 1:59 am
- Forum: Ren'Py Questions and Announcements
- Topic: AlphaMasking an animated transform seems not to work
- Replies: 4
- Views: 918
AlphaMasking an animated transform seems not to work
I feel like I must be missing something painfully obvious with this one, but I can't see it. Here goes: I have a texture image that I wish to infinitely scroll upward, that part's not so bad. The trick then, is to apply an AlphaMask to the animation such that it fades in rather than just appears at ...
- Tue May 21, 2019 11:42 am
- Forum: Ren'Py Questions and Announcements
- Topic: Does something like "renpy.show_text" exists?
- Replies: 4
- Views: 667
Re: Does something like "renpy.show_text" exists?
It's unclear if you expect to be able to continue dialogue as this displays, for this I'm assuming not since your initial example makes use of pause. This is (more or less) the python version of the one-liner Remix gave. [edit]However the suggestion to use notify is potentially much more suitable de...
- Wed May 15, 2019 7:16 pm
- Forum: Development of Ren'Py
- Topic: Ren'Py Gripes
- Replies: 532
- Views: 225154
Re: Ren'Py Gripes
The on statement in ATL permits a list of events as keywords, conversely the on statement in SL2 only allows a single event, which must be provided as a quoted string. Being able to condense duplicate show & replace and hide & replaced actions in screens would be very nice as it would express the cl...