Search found 1336 matches

by xavimat
Thu Nov 01, 2018 4:40 pm
Forum: Ren'Py Questions and Announcements
Topic: So confused with this invalid syntax error
Replies: 2
Views: 58

Re: So confused with this invalid syntax error

This is renpy language to define images. Parenthesis, comma and = have no meaning here.

Code: Select all

image popup:
    "popup.png"
    xpos 0.5
    ypos 0.8
by xavimat
Wed Oct 24, 2018 11:49 am
Forum: Ren'Py Questions and Announcements
Topic: [solved] Is there another way I can delete the messages?
Replies: 2
Views: 64

Re: Is there another way I can delete the messages?

Note that dell_al_msg is a python function. You can call it inside a screen with Function() but you also can call it inside a label with the simple $. $ is used to start a python line inside a label, so, this should work: "PLAY THE CHAT AGAIN": $ del_all_msg() jump chatscene1
by xavimat
Sun Oct 21, 2018 3:14 pm
Forum: Ren'Py Questions and Announcements
Topic: Hpunch problem [Solved]
Replies: 2
Views: 86

Re: Hpunch problem

Try using "with" not "at".
by xavimat
Sun Oct 14, 2018 6:59 am
Forum: Ren'Py Questions and Announcements
Topic: Customising input box for player name
Replies: 2
Views: 121

Re: Customising input box for player name

The answer is different if you have in your game many inputs from the player or only this one. If you use renpy.input only once in your game, or if you want all your renpy.input with the same customized screen, you can go to the file screens.rpy and search "screen input(...". Customize directly the ...
by xavimat
Sun Oct 14, 2018 6:44 am
Forum: Ren'Py Questions and Announcements
Topic: [Solved] Vertical/Rotated text on a screen
Replies: 3
Views: 110

Re: Rotate the text of a screen

There are style-properties, used in screens, and transform-properties, used in ATL. "rotate" is not a style-property, is a transform-property. This can be confusing because "xpos" or "yalign", for example, are used in styles and in transforms, so one could assume that every property can be used in b...
by xavimat
Fri Oct 12, 2018 6:45 pm
Forum: Ren'Py Questions and Announcements
Topic: [Solved] Making a random image show up like that?
Replies: 3
Views: 96

Re: Making a random image show up like that?

There are some things to note here: 1. First of all, you can't mix python code and renpy code. The dialogue line " I'd make a queston here " has no meaning in python. 2. "init" is used only for the init phase, not for the actual game. 3. "add" is renpy-screen-language, different from renpy-label-lan...
by xavimat
Fri Oct 12, 2018 6:32 pm
Forum: Ren'Py Questions and Announcements
Topic: How to make main menu background image change?
Replies: 2
Views: 100

Re: How to make main menu background image change?

Use a persistent variable to tell the main menu what background to use. main menu is technically "outside" the game, so you need to use a persistent variable, they serve to have info shared among plays. define persistent.main_menu_bg = "main_menu_bg_base" label start: " Prologue. background image of...
by xavimat
Fri Oct 12, 2018 6:11 pm
Forum: Ren'Py Questions and Announcements
Topic: [Solved] How do you choose a theme (in the launcher)?
Replies: 4
Views: 136

Re: How do you choose a theme (in the launcher)?

Renpy added the "gui.rpy" file some versions ago. Before that, it had the theme selector you have seen. The new gui is highly customizable and that's the reason it's not possible to choose the old themes when a new project is created. There was a time when you had to choose between new GUI or legacy...
by xavimat
Fri Oct 12, 2018 5:52 pm
Forum: Ren'Py Questions and Announcements
Topic: Re: PLEASE HELP! PROJECT DELETED ITSELF
Replies: 8
Views: 256

Re: Re: PLEASE HELP! PROJECT DELETED ITSELF

I'm looking at your video and I'm a bit confused. Probably I haven't been clear. 1. You say that "the only things in there was a numbers and letters .rpy files". But I'm seeing in your video that the filenames in the folder start indeed with one of the words: "script", "gui", "screens", "options". A...
by xavimat
Fri Oct 12, 2018 5:28 pm
Forum: Ren'Py Questions and Announcements
Topic: Customizing Menu Choices
Replies: 7
Views: 214

Re: Customizing Menu Choices

You can use a global variable, as rames44 suggest that affect the choice screen and its appearance. Or you can create different choice screens: - copy the original one to another named, for example, "choice2" and change the appearance in the copy. - then use renpy.display_menu to invoke your menus (...
by xavimat
Thu Oct 11, 2018 6:53 pm
Forum: Ren'Py Questions and Announcements
Topic: Customizing Menu Choices
Replies: 7
Views: 214

Re: Customizing Menu Choices

The file screens.rpy has the screen choice, you can customize it as you need. You'll find some style choice... definitions below the screen. Also gui.rpy has many definitions of styles applied to that screen and its elements, like spacing, positioning, width, etc. Look for the words "gui.choice_". T...
by xavimat
Thu Oct 11, 2018 6:37 pm
Forum: Ren'Py Questions and Announcements
Topic: [Solved] Tooltips for Labels
Replies: 3
Views: 115

Re: Tooltips for Labels

martingerdes wrote:
Thu Oct 11, 2018 3:39 pm
Thank you for the information.
I know of no displayable "textbox", but a textbutton with NullAction() seems to work fine, and I can style it as needed.
Oh, sorry, my bad. I meant "textbutton". :oops:
I've corrected my previous post.
by xavimat
Thu Oct 11, 2018 10:57 am
Forum: Ren'Py Questions and Announcements
Topic: [solved] Can I "block" the screen in this case?
Replies: 2
Views: 120

Re: Can I "block" the screen in this case?

If I understand it well, that does not happen when they "click" on the screen, but when they press "Return" key on keyboard. Here two solutions: one to ask again and another to get a default name automatically: # SOLUTION 1 default name = "" define e = Character("[name]") label start: while name == ...
by xavimat
Thu Oct 11, 2018 7:09 am
Forum: Ren'Py Questions and Announcements
Topic: Re: PLEASE HELP! PROJECT DELETED ITSELF
Replies: 8
Views: 256

Re: Re: PLEASE HELP! PROJECT DELETED ITSELF

Look at your folder: ...Roaming > Renpy > backups > Doki Doki Drama Club Those files are what you need to recover the most recent auto-backup rpy files. Click on "Date modified" to sort files by last date and pick only the more recent ones (one of each: script, screens, options, gui... and so on). -...
by xavimat
Thu Oct 11, 2018 6:32 am
Forum: Ren'Py Questions and Announcements
Topic: [Solved] Tooltips for Labels
Replies: 3
Views: 115

Re: Tooltips for Labels

Not only labels, also mouseareas that have the "hovered" property, do not respond to tooltip. Bars do respond if they can change some value (like in preferences), They don't if given a fixed value. Probably doc should say, as you say, "available in all displayables that can gain focus" or "all displ...