Search found 1412 matches

by Remix
Thu May 28, 2020 1:31 pm
Forum: Ren'Py Questions and Announcements
Topic: Random dialogue
Replies: 4
Views: 79

Re: Random dialogue

You could also do it through a Creator Defined Statement...

Tom has an example of one through his Patreon:

https://patreon.renpy.org/three-creator ... ments.html
by Remix
Thu May 28, 2020 9:35 am
Forum: Ren'Py Questions and Announcements
Topic: Stopping a sound played on the 'audio' channel
Replies: 4
Views: 1177

Re: Stopping a sound played on the 'audio' channel

You could move those sounds to another channel (maybe one you created yourself) that can be stopped by changing the config: define config.play_channel = "audio" # The name of the audio channel used by renpy.play(), hover_sound, and activate_sound. As mentioned though, the audio channel will complete...
by Remix
Mon May 25, 2020 11:17 am
Forum: Ren'Py Questions and Announcements
Topic: Individual GUI button sounds
Replies: 5
Views: 113

Re: Individual GUI button sounds

You might also take note of the activate_sound and hover_sound parameters to buttons... textbutton _("Save"): action QuickSave("Save complete", newest=True) activate_sound "audio/clickety_click.ogg" hover_sound "audio/dull_whisper.ogg" Those two are actually style settings, so you could add them to ...
by Remix
Mon May 25, 2020 11:06 am
Forum: Ren'Py Questions and Announcements
Topic: How do I make it so that moving the mouse scroller down will advance the text forward even if the text is unread?
Replies: 2
Views: 88

Re: How do I make it so that moving the mouse scroller down will advance the text forward even if the text is unread?

None too sure I'd advise doing that in a game... Up to you though...

Code: Select all

init python:

    config.keymap['dismiss'].append('mousedown_5')
by Remix
Mon May 25, 2020 5:33 am
Forum: Ren'Py Questions and Announcements
Topic: Custom transform not working [SOLVED]
Replies: 4
Views: 93

Re: Custom transform not working [Help]

center is a positional transform... it adjusts pos (as a byproduct of adjusting align) so overrides other positional settings

So, bunny at jump, center is saying put bunny at xpos 600 ypos 1280 and move to ypos 890 AND finally (before drawing the frame) put bunny at center (likely xpos 640)
by Remix
Sun May 24, 2020 7:52 pm
Forum: Ren'Py Questions and Announcements
Topic: [Solved] One SaveGame system - how to load and run savegame
Replies: 2
Views: 111

Re: One SaveGame system - how to load and run savegame

You just want
Function(AutoLoding)

The extra () you had would cause the function to actually run during prediction
by Remix
Wed May 20, 2020 7:38 am
Forum: Ren'Py Questions and Announcements
Topic: Imagebutton action
Replies: 14
Views: 241

Re: Imagebutton action

action SetVariable("the_variable", the_variable + 1)

remembering to default the variable before using it

default the_variable = 5
by Remix
Wed May 20, 2020 7:30 am
Forum: Ren'Py Questions and Announcements
Topic: Is it possible to change the overall hue of a Ren'Py Game?
Replies: 4
Views: 291

Re: Is it possible to change the overall hue of a Ren'Py Game?

As gas noted, pretty much any processing (except ATL) feature in Ren'Py only works on physical files, so you'd need to process each file before using it in some form of composite. There is matrix.colorize which could take a gray-scale (black and white and grays) and make the blacks into purples and ...
by Remix
Wed May 20, 2020 6:53 am
Forum: Ren'Py Questions and Announcements
Topic: Change the color of the dialog boxes
Replies: 6
Views: 166

Re: Change the color of the dialog boxes

You are doing things twice, once through color settings then again through interpolated prefix with {color=} The interpolation is where your error is there. I just tested what I posted earlier and found that the what_color setting is applied after the widget inline style which means that earlier way...
by Remix
Tue May 19, 2020 8:25 pm
Forum: Ren'Py Questions and Announcements
Topic: (Solved) "Refusing to open (file) while predicting" Error
Replies: 5
Views: 209

Re: "Refusing to open (file) while predicting" Error

So, does it work if you point the frame background at a different image?
by Remix
Tue May 19, 2020 8:05 pm
Forum: Ren'Py Questions and Announcements
Topic: Change the color of the dialog boxes
Replies: 6
Views: 166

Re: Change the color of the dialog boxes

If you just set/unset the persistent variable, you can then just toggle whether the Character's 'color' is used within the say screen... # In screen say in screens.rpy, amend the text widget text what: id "what" if not persistent.new_color: # no colour text unless persistent is True color "#FFF"
by Remix
Tue May 19, 2020 5:29 pm
Forum: Ren'Py Questions and Announcements
Topic: [Solved] How can I get string interpolation to also look in the character store?
Replies: 2
Views: 116

Re: How can I get string interpolation to also look in the character store?

You could prefix the namespace in the interpolation

Code: Select all

define character.e = Character("Eileen")

label start:
    e "My name is [character.e]"
by Remix
Sun May 17, 2020 6:56 am
Forum: Ren'Py Questions and Announcements
Topic: Modifying Extend to Show All At Once? (solved)
Replies: 6
Views: 155

Re: Modifying Extend to Show All At Once?

As philat says, just add {nw} to the interim lines... "There was a series of unfortunate events.{nw}" if weather == "sunny": extend "The sun burned in your eyes.{nw}" elif weather == "rainy": extend "You slipped on the wet pavement.{nw}" else: extend "It just wasn't your kind of day.{nw}" ### This l...
by Remix
Fri May 15, 2020 7:19 pm
Forum: Ren'Py Questions and Announcements
Topic: Timer on the background (Timer, energy)
Replies: 8
Views: 401

Re: Timer on the background (Timer, energy)

Note: If you have some periodic or loop system that checks if things are done, you really should also check if the value of time.time() is lower (see note) than the last found value of it. As time.time() uses the system clock, people can adjust it to race through games. Note: To race, people would s...
by Remix
Fri May 15, 2020 7:11 pm
Forum: Ren'Py Questions and Announcements
Topic: Timer on the background (Timer, energy)
Replies: 8
Views: 401

Re: Timer on the background (Timer, energy)

As your first post alluded to, you need to totally move away from any in-built Ren'Py time system (which generally work on seconds while in game, not menu, context). This kind of thing can only really work by referencing an external time value. The general concept is: You know the time value of now ...