Search found 593 matches

by gas
Sat Mar 07, 2020 9:43 pm
Forum: Ren'Py Questions and Announcements
Topic: Misalignment between lines in the say screen
Replies: 5
Views: 220

Re: Misalignment between lines in the say screen

That could depend on your font glyphs kerning.
What font are you using? The source? Some free copy of commercial fonts are distributed with very basic (and wrong) kernings.
by gas
Sat Mar 07, 2020 4:37 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED]Say statement in Menu
Replies: 5
Views: 236

Re: Say statement in Menu

GoldenD wrote:
Sat Mar 07, 2020 4:00 am
Ok guys,
these are the tracks I was studying. I think I have no choice to re-think my code.
Just for curiosity: what you dialogue function did?
by gas
Fri Mar 06, 2020 8:46 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED]Say statement in Menu
Replies: 5
Views: 236

Re: Say statement in Menu

That depend the way your function is written. Menu can use a say statement and that's automatically shown (if present) in the dialogue box. You can use MENU ARGUMENTS and another screen at will to change this behaviour. https://www.renpy.org/doc/html/menus.html#menu-arguments This is an indepth on m...
by gas
Fri Mar 06, 2020 8:18 pm
Forum: Ren'Py Questions and Announcements
Topic: Python Class Attribute Boolean Not Changing from Default [Solved]
Replies: 4
Views: 256

Re: Python Class Attribute Boolean Not Sorting Correctly

You don't need a second list. You can simply sort things out based on the 'chat' parameter. That's mean the mail list contain all messages, but you sort them by need. For example: def message_count(): visible_messages = [x for x in mail if x.view and not x.chat] return len(visible_messages) This one...
by gas
Mon Mar 02, 2020 8:39 pm
Forum: Ren'Py Questions and Announcements
Topic: [Solved]Defining Gallery buttons. Help!
Replies: 8
Views: 262

Re: Defining Gallery buttons. Help!

Remove that init -1 to define images.
by gas
Sat Feb 29, 2020 7:11 pm
Forum: Ren'Py Questions and Announcements
Topic: IOError: Ren'py can't find a .png picture
Replies: 5
Views: 262

Re: IOError: Ren'py can't find a .png picture

Can't you simply rename pic and try?
Something like proxy.png, use 'scene proxy' and see?
by gas
Sat Feb 29, 2020 6:00 pm
Forum: Ren'Py Questions and Announcements
Topic: Jump or call under define ?
Replies: 7
Views: 190

Re: Jump or call under define ?

The text wasn't printed cause printing text such way is a renpy statement. You need to use a python equivalent: renpy.say("Invalid name!") What's inside a python block can't execute directly renpy statements. Renpy statements work only when inside a label. init -1 python: # this is a python block, y...
by gas
Sat Feb 29, 2020 5:53 pm
Forum: Ren'Py Questions and Announcements
Topic: [Solved] ATL inside Hide()
Replies: 2
Views: 201

Re: ATL inside Hide()

Try to use an "on hide" clause in the transform itself.
This is an example.

Code: Select all


transform notify_appear:
    on show:
        alpha 0
        linear .25 alpha 1.0
    on hide:
        linear .5 alpha 0.0
by gas
Sat Feb 29, 2020 5:48 pm
Forum: Ren'Py Questions and Announcements
Topic: Jump or call under define ?
Replies: 7
Views: 190

Re: Jump or call under define ?

Code: Select all

init -1 python:
    def HasName():
        if player == "Player":
            renpy.jump ("invalidname")
renpy.jump() is the python equivalent of jump.
Python equivalents are used inside python blocks to emulate renpy statements (well, a bit more intricated than this, but that's the use logic).
by gas
Fri Feb 28, 2020 4:14 am
Forum: Ren'Py Questions and Announcements
Topic: [Solved] Having trouble hiding screens and images automatically during choice menu
Replies: 9
Views: 305

Re: Having trouble hiding screens and images automatically during choice menu

Code: Select all

screen choice(items):
    style_prefix "choice"
    on "show" action Hide("hud_bottom")
    on "hide" action Show("hud_bottom")
    vbox:
        for i in items:
            textbutton i.caption action i.action
...and thanks for all the fish.
by gas
Thu Feb 27, 2020 9:40 pm
Forum: Ren'Py Questions and Announcements
Topic: Multiple imagebuttons inside a frame on screen are blocking a transform.
Replies: 3
Views: 215

Re: Multiple imagebuttons inside a frame on screen are blocking a transform.

If you add two or more elements to a frame a fixed is created inside the frame, so your code is actually frame: position # position of the frame fixed: # a virtual fixed, not positioned that occupy the entire area of the screen item # three childs of the frame. item item You should type this: frame:...
by gas
Thu Feb 27, 2020 9:28 pm
Forum: Ren'Py Questions and Announcements
Topic: Printing Strings With %
Replies: 3
Views: 230

Re: Printing Strings With %

Well, is NOT so hard or dramatical, I mean... just use placeholders. default st_msg = "something" default st_score = "" default st_what = "?!?!" idle LiveComposite( (120, 170), # x y pos (0.095, 0.650), Text("%s%s%s" % (st_msg,st_score,st_what)), ) In the moment you deliver an hit or whatever such g...
by gas
Thu Feb 27, 2020 3:03 pm
Forum: Ren'Py Questions and Announcements
Topic: Printing Strings With %
Replies: 3
Views: 230

Re: Printing Strings With %

You should use each conditional on all arguments,non the whole tuple. Something like Text("%s%s%s" % (("Deal" if c.dmg > 0 else "Gain" if c.armor > 0 else ""),(c.dmg if... else c.armor if...))) As you can see this is not the best thing to do, so probably you should compute such values in advance wit...
by gas
Thu Feb 27, 2020 2:39 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Failing at adding variables in a search items mini-game
Replies: 4
Views: 270

Re: Failing at adding variables in a search items mini-game

Some more hint. Create all the needed variables and assign them a default value (you can change it later). Create a loop (that's mean a label that jump back on itself, or exit away on an input) Call a screen with interaction buttons, that Return() an action. Have your code manage the Return() value ...