Search found 1432 matches

by xavimat
Tue May 14, 2019 10:20 am
Forum: Ren'Py Questions and Announcements
Topic: Unable to move names without moving the namebox with it
Replies: 2
Views: 111

Re: Unable to move names without moving the namebox with it

You could try changing the offset values of the text inside the window in the "say" screen (file: screens.rpy).
by xavimat
Mon May 13, 2019 5:37 pm
Forum: Ren'Py Questions and Announcements
Topic: [Solved] Is there a better way to define that code (month, day, etc)?
Replies: 5
Views: 212

Re: Is there a better way to define that code (month, day, etc)?

"init" blocks are executed only at init phase (before the main menu), so only once. There is nothing in your code that tells renpy to "refresh" the variables. You could do (not tested): # CONSTANTS define downames = ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"] defin...
by xavimat
Sun May 05, 2019 12:21 pm
Forum: Ren'Py Questions and Announcements
Topic: Image maps in splashscreen
Replies: 1
Views: 209

Re: Image maps in splashscreen

(Sorry, but this questions belongs to another subforum: "Ren'Py Questions and Announcements", not "Development of Ren'Py") Anyway, this is how I do it: Use the special label "before_main_menu", and add a selector in the "preferences" screen: (My main language is "Spanish" and the translation is "Eng...
by xavimat
Sat May 04, 2019 3:07 pm
Forum: Ren'Py Questions and Announcements
Topic: Conditionally setting menu choices visible and invisible?
Replies: 2
Views: 98

Re: Conditionally setting menu choices visible and invisible?

menu: "This is dialog choice number 1.": jump choice1 "This is dialog choice number 2.": jump choice2 "This is dialog choice number 3" if Day1_movies: jump choice3 menu: "This is dialog choice number 1.": jump choice1 "This is dialog choice number 2.": jump choice2 "This is dialog choice number 3" ...
by xavimat
Sat May 04, 2019 11:12 am
Forum: Ren'Py Questions and Announcements
Topic: Issues with Editra
Replies: 8
Views: 254

Re: Issues with Editra

"Atom" is a good choice for renpy. You can look at "sublime text" too, it's lighter.
by xavimat
Sat May 04, 2019 10:48 am
Forum: Ren'Py Questions and Announcements
Topic: Center words in a Text displayable?
Replies: 4
Views: 209

Re: Center words in a Text displayable?

You can use a little know text style property: layout "subtitle" https://www.renpy.org/doc/html/style_pr ... rty-layout
by xavimat
Sat May 04, 2019 10:43 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED ]Making pop-ups for skillcheks?
Replies: 2
Views: 110

Re: Making pop-ups for skillcheks?

I don't know "Long Live the Queen" but you can use renpy.notify(), or create a screen yourself that does the same (probably, the latter will be better, so you can stylize it as you want). https://www.renpy.org/doc/html/other.html#renpy.notify For a hand made screen, you can use a timer that hides th...
by xavimat
Fri May 03, 2019 3:34 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] - ATL transform issue
Replies: 6
Views: 215

Re: ATL transform issue

If you want two images showing at the same time, you need to define two images. Two examples of doing this: 1. (Preferred for simplicity) In the screen itself, add two images, the animated one and the static: add "lenagym" add "lenagym01b.png" 2. In the image-definition, use "contains" blocks (not t...
by xavimat
Thu May 02, 2019 10:11 am
Forum: Ren'Py Questions and Announcements
Topic: Showing a portrait at a fixed screen coordinate?
Replies: 4
Views: 158

Re: Showing a portrait at a fixed screen coordinate?

There are some " Position Style Properties " that can accept integers or floats, but they have different meaning: pos, xpos, ypos, anchor, xanchor, yanchor, xcenter, ycenter, offset. - When these properties are given an integer, it's interpreted as an absolute position in pixels. - When a float is g...
by xavimat
Thu May 02, 2019 9:56 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] - ATL transform issue
Replies: 6
Views: 215

Re: ATL transform issue

I don't fully understand what do you want and what the problem is. I'm just guessing: - For your example it's better to define an image, not a transform. image lenagym: "Gym/lenagym00.jpg" pause .05 "Gym/lenagym01.jpg" pause .05 "Gym/lenagym02.jpg" pause .05 "Gym/lenagym01.jpg" "lenagym01b.png" paus...
by xavimat
Thu May 02, 2019 9:34 am
Forum: Ren'Py Questions and Announcements
Topic: Solved: Adding a divider line without an image inside a frame.
Replies: 3
Views: 129

Re: Solved: Adding a divider line without an image inside a frame.

You can simplify the code using Solid with properties. Instead of creating a fixed and filling it:

Code: Select all

screen girl_stats():
    frame:
        xpos 10 ypos 10
        vbox:
            text "above"
            add Solid("#F00", xysize=(100,2))
            text "below"
by xavimat
Thu May 02, 2019 9:05 am
Forum: Ren'Py Questions and Announcements
Topic: Why does my textbutton work in a weird way?
Replies: 11
Views: 286

Re: Why does my textbutton work in a weird way?

1. Imagebutton and textbutton should work the same, both are buttons, the "action" should do exactly the same. 2. Inside your "buy" function, you shouldn't use the variable "selected_item" but the local variable "item". I guess the estrange behavior you are getting lies there. 3. Check for the item ...
by xavimat
Tue Apr 30, 2019 6:12 pm
Forum: Ren'Py Questions and Announcements
Topic: using multiple script files to seperate scenes
Replies: 3
Views: 130

Re: using multiple script files to seperate scenes

Renpy will consider all your .rpy files as a large unified file. You can organize them as you please. I usually have a file for definitions (define, default, classes), another file for my screens and some others for the labels. If you have complex images (like layered images or Dynamic Displayables)...
by xavimat
Tue Apr 30, 2019 6:03 pm
Forum: Ren'Py Questions and Announcements
Topic: Why does my textbutton work in a weird way?
Replies: 11
Views: 286

Re: Why does my textbutton work in a weird way?

ippherita wrote:
Tue Apr 30, 2019 10:17 am
why does separating the "inventory.buy" and the "selected_item" (and turn it to item=selected_item) works? they stop the screen prediction?
I don't know how exactly it works, I was simply reading the docs: https://www.renpy.org/doc/html/screen_a ... l#Function
by xavimat
Tue Apr 30, 2019 9:56 am
Forum: Ren'Py Questions and Announcements
Topic: Dictionary Use
Replies: 4
Views: 151

Re: Dictionary Use

square braces are for lists, not Dictionaries. Dictionaries are accessed via curly brackets, according to my research. https://www.pythonforbeginners.com/dictionary/how-to-use-dictionaries-in-python/ As you can see in the same page you have linked, dictionaries are CREATED with curly brackets {} bu...