Search found 114 matches

by enaielei
Mon Nov 15, 2021 11:03 am
Forum: Ren'Py Questions and Announcements
Topic: How to use screen always during game?
Replies: 5
Views: 305

Re: How to use screen always during game?

Hoondahl wrote:
Mon Nov 15, 2021 8:33 am
sorry, but it is not working. I put code in script.rpy but nothing happens.
Observe my code, I have the screen name inside a list, hence the existence of brackets [] in my code.
You can also see that in the documentation link that I attached.
by enaielei
Mon Nov 15, 2021 7:57 am
Forum: Ren'Py Questions and Announcements
Topic: How to use screen always during game?
Replies: 5
Views: 305

Re: How to use screen always during game?

Try making your screen an overlay screen.

Code: Select all

define config.overlay_screens = ["your_screen_name"]
by enaielei
Sun Nov 07, 2021 4:46 am
Forum: Ren'Py Questions and Announcements
Topic: Dynamic Character Outlined
Replies: 3
Views: 319

Re: Dynamic Character Outlined

You should name the variable you're using for the name differently since it's already been taken by your actual Character object. Also, as of now, you can just pass a keyword argument in the Character object that tells whether it's a dynamic character or not. default _mc = "DefaultName" define mc = ...
by enaielei
Mon Nov 01, 2021 5:31 am
Forum: Ren'Py Questions and Announcements
Topic: Align Text Within Frame In Screen [SOLVED]
Replies: 19
Views: 415

Re: Align Text Within Frame In Screen

Use float xalign 1.0 instead of int xalign 1, the two differ from each other.
by enaielei
Fri Oct 29, 2021 1:58 pm
Forum: Ren'Py Questions and Announcements
Topic: What does sensitive mean in the context of screens?
Replies: 1
Views: 278

Re: What does sensitive mean in the context of screens?

sensitive in displayables means it's "interactable". If a button is sensitive then you can click it, hover over it etc.
You're not the only one. I also found the docs lacking a proper explanation of this, so I had to explore this along the way.
by enaielei
Mon Oct 25, 2021 10:07 pm
Forum: Ren'Py Questions and Announcements
Topic: Change default position/settings of sprites? [SOLVED]
Replies: 3
Views: 381

Re: Change default position/settings of sprites?

Try this...

Code: Select all

transform _sprite_default:
  align (0.25, 0.25)
  
define config.default_transform = _sprite_default
https://www.renpy.org/doc/html/config.h ... _transform
by enaielei
Mon Oct 25, 2021 10:02 pm
Forum: Ren'Py Questions and Announcements
Topic: Centering text in a vbox [Solved]
Replies: 3
Views: 421

Re: Centering text in a vbox

Try to use xalign 0.5 in your texts.
by enaielei
Sun Oct 24, 2021 12:12 pm
Forum: Ren'Py Questions and Announcements
Topic: Toggle changes of scene automatically (ConditionSwitch, Persistent Data)
Replies: 3
Views: 452

Re: Toggle changes of scene automatically (ConditionSwitch, Persistent Data)

How are you using the `renpy.restart_interaction`? it should be used using the `Function` action. Also, if I'm not mistaken, I think you can directly do in the `ConditionSwitch` conditions such as `persistent.h_content == ...`, if not then you can directly set the value of `h_content` itself in the ...
by enaielei
Fri Oct 22, 2021 8:07 pm
Forum: Ren'Py Questions and Announcements
Topic: Add to persistent.
Replies: 1
Views: 261

Re: Add to persistent.

Code: Select all

label splashscreen:
  if not persistent.variable:
    $ persistent.variable = 0

  $ persistent.variable += 1
  return