Search found 238 matches
- Sat May 09, 2020 3:48 pm
- Forum: Ren'Py Questions and Announcements
- Topic: How to center text?
- Replies: 6
- Views: 606
Re: How to center text?
I'm not sure if i understand your question, but generally it is done like this: vbox: xfill True ## make vbox take all available horizontal space text "left" text "center" xalign 0.5 ## can be other value, not just in 0.0-1.0 range text "right" xalign 1.0 Also if you ha...
- Sat May 09, 2020 12:29 pm
- Forum: Ren'Py Questions and Announcements
- Topic: How to center text?
- Replies: 6
- Views: 606
Re: How to center text?
Code: Select all
vbox:
xalign 0.5
label "[config.name!t] v.[config.version!t]\n" xalign 0.5
#etc...
- Sat May 09, 2020 8:08 am
- Forum: Ren'Py Questions and Announcements
- Topic: How to center text?
- Replies: 6
- Views: 606
Re: How to center text?
As xavimat said, but basically just add xalign 0.5 to vbox itself.
- Sat May 09, 2020 5:35 am
- Forum: Ren'Py Questions and Announcements
- Topic: What is the difference in formats?
- Replies: 2
- Views: 349
Re: What is the difference in formats?
First screen is renpy internals, don't touch them, unless you really know what you doing. Second screen is your game files, rpyc files are compiled rpy files, they used for faster game starting and some rudimentary obfuscation. When making game you add/remove/edit rpy files in your game project fold...
- Sat May 09, 2020 5:25 am
- Forum: Ren'Py Questions and Announcements
- Topic: i cant launch Ren'py or any Ren'py based games
- Replies: 15
- Views: 805
Re: i cant launch Ren'py or any Ren'py based games
Open Explorer, select renpy.exe (launcher), press and do not release Shift, double click on renpy.exe, you should get attached screen, only after that release Shift key. settings.png Try different renderers and restart launcher. If you don't see this screen then i have no idea what is gone wrong and...
- Fri May 08, 2020 1:03 pm
- Forum: Ren'Py Questions and Announcements
- Topic: i cant launch Ren'py or any Ren'py based games
- Replies: 15
- Views: 805
Re: i cant launch Ren'py or any Ren'py based games
When starting game or launcher, press Shift key, system settings will pop up, try changing renderer, exit and start again normally. If it helps then problem is with video driver you updated, if not then need more details, as log simple get chopped and provide no useful information.
- Fri May 08, 2020 8:53 am
- Forum: Development of Ren'Py
- Topic: [bug] displayable defined in certain way going nuts
- Replies: 2
- Views: 6191
Re: [bug] displayable defined in certain way going nuts
P.S.: There is already issue about this or very closely related bug on github - https://github.com/renpy/renpy/issues/2064
- Fri May 08, 2020 8:30 am
- Forum: Development of Ren'Py
- Topic: [bug] displayable defined in certain way going nuts
- Replies: 2
- Views: 6191
Re: [bug] displayable defined in certain way going nuts
Can confirm bug, 7.3.5.606. I believe problem started from this commit: https://github.com/renpy/renpy/commit/797ef0fc25689c27fb08dc7c6349292d2e4739cf renpy/display/layout.py, DynamicDisplayable class, line ~1264 def update(self, st, at): child, redraw = self.function(st, at, *self.args, **self.kwar...
- Mon May 04, 2020 7:22 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Finding items in list [SOLVED]
- Replies: 3
- Views: 314
Re: Finding items in list
Code: Select all
show player1:
xalign 0.01+0.1*moveSlots.index(1)
- Tue Apr 28, 2020 6:52 am
- Forum: Ren'Py Questions and Announcements
- Topic: How can I create many different objects with the same timer code
- Replies: 8
- Views: 395
Re: How can I create many different objects with the same timer code
I believe better option would be having one always-running repeatable timer which will call update_buildings function, which in turn will process buildings states.
- Sat Apr 25, 2020 10:43 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Python: How modificate a value of all the objects from a class ?
- Replies: 4
- Views: 413
Re: Python: How modificate a value of all the objects from a class ?
I would use something like default global_age=0 init python: class Perso(object): def __init__(self,name,age): self.name=name self._age=age @property def age(self): return global_age+self._age @age.setter def age(self,age): self._age=age label new_year: $global_age+=1 "Happy New Year!" ret...
- Mon Dec 23, 2019 1:31 pm
- Forum: Development of Ren'Py
- Topic: [patch] Vertical size_group?
- Replies: 0
- Views: 6775
[patch] Vertical size_group?
Is there any proper way for frames to have same height? I can can get them same width using size_group, but it doesn't work for height. I looked where it used and made simple patch to force both width and height to be same, it works for my games and other test cases, i believe. Obviously it would be...
- Fri Dec 20, 2019 5:11 am
- Forum: I am a Programmer, Director, or Other
- Topic: [BUSY] Programming
- Replies: 13
- Views: 4435
Re: [AVAILABLE] Programming, game design, consulting
Available again.
- Sun Oct 27, 2019 6:00 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Arrays in Ren'Py
- Replies: 7
- Views: 21085
Re: Arrays in Ren'Py
Not exactly true, there are bytearrays what can store bytes, and with ctypes/structure you can get proper arrays of pretty much any kind. Tho that would be un-pythonic
- Sun Oct 27, 2019 5:59 pm
- Forum: Ren'Py Questions and Announcements
- Topic: How to output formatted text from file to a ren'py screen?
- Replies: 7
- Views: 893
Re: How to output formatted text from file to a ren'py screen?
I guess best approach would be writing conversion tool or even conversion function to be used by game itself, what will read RTF/HTML file, parse it and convert it into stream of RenPy text+tags, converting tables and images would be bit harder, but doable. But that is reasonably complex task, so yo...