Search found 208 matches

by korova
Sun Jul 03, 2016 6:14 am
Forum: Ren'Py Cookbook
Topic: [Solved]Imagemap indentation mismatch. Delete this ;_;
Replies: 2
Views: 542

Re: Imagemap indentation mismatch

The word "imagemap" must be strictly aligned with the word "window", on your screenshot there is a one space gap (imagemap is one space more on the right) indentation is very important in python and in Ren'Py too (based on python) In Ren'Py, blocks must be indented relative to the prior statement, a...
by korova
Tue Jun 28, 2016 6:03 am
Forum: Ren'Py Questions and Announcements
Topic: preferences screen with multiple language option ?
Replies: 3
Views: 1061

Re: preferences screen with multiple language option ?

I think I have a solution for your preference menu issue : you have to use screen language to achieve what you want, not persistent variable. You have a screen language action to change language https://www.renpy.org/doc/html/translation.html#translation-actions-functions-and-variables So you should...
by korova
Tue Jun 21, 2016 4:31 am
Forum: Ren'Py Questions and Announcements
Topic: Extracting character name colour
Replies: 5
Views: 629

Re: Extracting character name colour

I did that several times. So how do I do that ? Well, I define a variable that takes the color, and then use this vatiable any time I need the color to be used. define couleur_samsara = Color("#00aad3") Here is my character definition define moine = Character(None, what_color = couleur_samsara, wind...
by korova
Sat Jun 11, 2016 2:40 pm
Forum: Ren'Py Questions and Announcements
Topic: Menu(not global or main) customizations with styling?
Replies: 4
Views: 422

Re: Menu(not global or main) customizations with styling?

Why don't you use the same styles in your new menu and your main menu ?

Code: Select all

    window:
        style "mm_root"

Code: Select all

    frame:
        style_group "mm"
by korova
Sat Jun 11, 2016 1:43 pm
Forum: Ren'Py Questions and Announcements
Topic: Take screenshot and reuse it later
Replies: 1
Views: 284

Take screenshot and reuse it later

Hello people ! I'd like to know if it's possible to take a screenshot of the game, save it somewhere, in the images folder for example, and reuse it later, for example in a screen. I tried to use the renpy.screenshot() function , but I didn't succeed, it seems that no screenshot is saved anywhere. D...
by korova
Sun Jun 05, 2016 6:20 am
Forum: Ren'Py Questions and Announcements
Topic: Navigation through submenus?
Replies: 2
Views: 254

Re: Navigation through submenus?

You can treat your menus as labels by adding a label to them, like this label shop_items: menu: "make_up": menu: "short hair": menu short_hair: "red lotion (200 cr.)": if money>=200: $ money -=200 "you've bought red lotion!" jump short_hair #now I'd like it to go back to the "short hair" menu...But ...
by korova
Thu Jun 02, 2016 8:14 am
Forum: Ren'Py Questions and Announcements
Topic: Side images not displaying?[CLOSED]
Replies: 17
Views: 752

Re: Side images not displaying?

have you defined a "ZY n" image somewhere in your script (with a "image ZY n = "path_to_your_image.png" statement), or do you have a "ZY n.jpg" or "ZY n.png" in your images directory ?
by korova
Thu Jun 02, 2016 8:03 am
Forum: Ren'Py Questions and Announcements
Topic: Sliding + dissolve transition?
Replies: 8
Views: 685

Re: Sliding + dissolve transition?

Have you tested this code ?
The indentation seems wrong, and the linear statement is incomplete (or badly positioned ?)
by korova
Sun May 29, 2016 7:14 am
Forum: Ren'Py Questions and Announcements
Topic: help me how to fix line's identation
Replies: 3
Views: 341

Re: help me how to fix line's identation

Actually, the menu choices should have semi-colons (:) at the end like that : menu: "Terima Cindy": jump ending4 "Tolak Cindy": jump ending2 plus you should add a return or jump statement at the end of ending4, or ending2 will play juste after ending4
by korova
Sun May 29, 2016 7:10 am
Forum: Ren'Py Questions and Announcements
Topic: what it is?
Replies: 1
Views: 226

Re: what it is?

OEL means "end of line" Unix-based systems and windows systems have a different way to indicate that a line is over. (More details : https://en.wikipedia.org/wiki/Newline if you're interested) For whatever reason, in your scripts some lines use the unix-based system and others the windows-system, wh...
by korova
Sun May 22, 2016 2:27 pm
Forum: Ren'Py Questions and Announcements
Topic: Launching Editra failed?
Replies: 3
Views: 362

Re: Launching Editra failed?

Is editra installed ? What text editor do you use to write your scripts ?
by korova
Sun May 22, 2016 9:44 am
Forum: Ren'Py Questions and Announcements
Topic: Indentation Mismatch error
Replies: 20
Views: 7655

Re: Indentation Mismatch error

I'm not really sure I understand what you want to achieve here. What about you replace the animated image by a static one when you want to stop the animation ? By the way I realize there is an error in your image definition code. the instruction "repeat" is followed by the number of times you want t...
by korova
Sun May 22, 2016 9:26 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Textbutton with State-Dependent Text
Replies: 12
Views: 1160

Re: Textbutton with State-Dependent Text

I implemented korova's method, which did what I wanted, except for the text displaying insensitive color all the time. Unfortunately, you have to assign a specific text-style to each text. I know this is heavy, but I found no other easier alternative. So you have to define a "text_idle" style, to a...