Search found 1131 matches

by Remix
Wed Mar 20, 2019 5:09 pm
Forum: Ren'Py Questions and Announcements
Topic: Translation is not displayed in the project
Replies: 1
Views: 38

Re: Translation is not displayed in the project

That old version wasn't really written for translation. Try these tweaks (though I have Not tested the translation part much): init python: lexicon = { # .... } def hyperlink_lexicon( str_to_test ): for keys in lexicon: if isinstance(keys, basestring): keys = [keys] for phrase in keys: translated_ph...
by Remix
Tue Mar 19, 2019 6:58 am
Forum: Ren'Py Questions and Announcements
Topic: How would I make a time delay?
Replies: 2
Views: 82

Re: How would I make a time delay?

Or use {w=5.0} tag to make it wait 5 seconds then {nw} tag to make the dialogue not need interaction:

Code: Select all

label start:

    e "Hi{w=2.0}{nw}"
    e "There{w=2.0}{nw}"
    e "Stranger"
by Remix
Sun Mar 17, 2019 8:22 am
Forum: Ren'Py Questions and Announcements
Topic: Display drag above of other draggroup elements during dragging
Replies: 1
Views: 42

Re: Display drag above of other draggroup elements during dragging

I think you will have to go with the single draggroup and conditional drop check option with drag_raise set to True for each draggable item.
by Remix
Fri Mar 15, 2019 8:40 pm
Forum: Ren'Py Questions and Announcements
Topic: [solved] Show a screen on key press?
Replies: 10
Views: 185

Re: Show a screen on keypress?

Perhaps the logical approach might be to key the history screen so 'h' there hides it...

Code: Select all

screen history():
    key "h" action Hide("history")
... etc
Untested...
by Remix
Thu Mar 14, 2019 8:01 pm
Forum: Ren'Py Questions and Announcements
Topic: [solved] call screen variable?
Replies: 4
Views: 101

Re: call screen variable?

Oops, I didn't spot you were talking about screens:

$ renpy.call_screen( var )
by Remix
Thu Mar 14, 2019 7:20 pm
Forum: Ren'Py Questions and Announcements
Topic: [solved] Show a screen on key press?
Replies: 10
Views: 185

Re: Show a screen on keypress?

Lambda is just Python's way of doing anonymous functions. The Keymap arguments basically do (set) var = (call) function we cannot just do K_h = renpy.run as that would not pass our required parameters into it. This leaves us a few options: Declare a function... init python: def open_history(): renpy...
by Remix
Thu Mar 14, 2019 4:51 pm
Forum: Ren'Py Questions and Announcements
Topic: [solved] Show a screen on key press?
Replies: 10
Views: 185

Re: Show a screen on keypress?

Code: Select all

init python:

    config.keymap['hide_windows'].remove('h')

    config.underlay.append(
        renpy.Keymap( 
            K_h = lambda: renpy.run( ShowMenu("history") ) ) )
by Remix
Thu Mar 14, 2019 3:34 pm
Forum: Ren'Py Questions and Announcements
Topic: [Solved] Checking user's cps option
Replies: 2
Views: 62

Re: Checking user's cps option

preferences.text_cps
by Remix
Thu Mar 14, 2019 5:29 am
Forum: Ren'Py Questions and Announcements
Topic: [solved] call screen variable?
Replies: 4
Views: 101

Re: call screen variable?

$ var = "my_screen"
call expression var

https://www.renpy.org/doc/html/label.ht ... -statement
by Remix
Wed Mar 13, 2019 1:27 pm
Forum: Ren'Py Questions and Announcements
Topic: When using "text" inn a label, can I position it?
Replies: 2
Views: 51

Re: When using "text" inn a label, can I position it?

Code: Select all

show expression Text("Hello", xpos=200, ypos=200)
by Remix
Sun Mar 10, 2019 6:16 pm
Forum: Ren'Py Questions and Announcements
Topic: Lip synchronization with a sound file
Replies: 3
Views: 122

Re: Lip synchronization with a sound file

It is certainly do-able in Ren'Py, though you will have to be reasonably familiar with Python and get to know how things such as auto-voice and DynamicDisplayables work. I would suggest, if you do try this as a starter project, look at something like Rhubarb LipSync to generate files containing the ...
by Remix
Sun Mar 10, 2019 9:14 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Player name not showing up for text
Replies: 7
Views: 124

Re: $ Not showing character name/speech?

That is irrelevant... I'm telling you which syntax you can use for dialogue and explaining that $ denotes a line to be Python... Simply put, do Not start a line with $ unless you are using Python. $ "You stole my sprite cranberry!" is not valid (no part of it is Python, it is just Ren'Py) and I've n...
by Remix
Sun Mar 10, 2019 8:04 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Trying to make a passcode/ lock
Replies: 11
Views: 176

Re: Trying to make a passcode/ lock

You probably want a restart_interaction to get the screen to refresh. (also note: you could just modulo the values rather than if else) action [ SetVariable('thirdlock', (thirdlock + 1) % 10 ), renpy.restart_interaction() ] *might* be Function( renpy.restart_interaction ) ... I always forget which f...
by Remix
Sun Mar 10, 2019 7:47 am
Forum: Ren'Py Questions and Announcements
Topic: Renpy not meeting Android Play Store minuimum build requirements
Replies: 11
Views: 415

Re: Renpy not meeting Android Play Store minuimum build requirements

Have you tried just transferring the .apk to your mobile and trying it like that. If that works the issue is something to do with the Play store.
by Remix
Sun Mar 10, 2019 7:29 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Player name not showing up for text
Replies: 7
Views: 124

Re: $ Not showing character name/speech?

You cannot name a character $

$ is used to indicate the line is Python and not Ren'Py.

Just use their string name, their variable reference or nothing, just not $

"Eileen" "Hello World" # ok
e "Hello World" # ok (if you have done the 'define e = Character(....)' bit)
"Hello World" # ok