Search found 29 matches

by tornsoul
Wed Jul 28, 2021 3:28 pm
Forum: Ren'Py Questions and Announcements
Topic: How to draw&update 2500(50x50) tiles
Replies: 1
Views: 1631

How to draw&update 2500(50x50) tiles

Usecase: - a board game with 50x50 tiles (or more) - tiles will change as the game progress, so they need to be updated (on click - and automatically) - the board has row and column headers that needs to update (highlight/change color) as the mouse moves around over the board I've tried with image b...
by tornsoul
Tue Jul 13, 2021 1:53 pm
Forum: Ren'Py Questions and Announcements
Topic: Is there a way to know in which language is the game right now?
Replies: 9
Views: 1027

Re: Is there a way to know in which language is the game right now?

Your viewport has no dimension or position? Are those screenshots of the whole screen? or partials? It looks to me like the texts are both centered around the same point - which isn't far from the right edge of the center blue area in your widget. Ie. the middle of each text lines up with each other...
by tornsoul
Tue Jul 13, 2021 1:31 pm
Forum: Ren'Py Questions and Announcements
Topic: Showing two languages in-game simultaneously
Replies: 7
Views: 1624

Re: Showing two languages in-game simultaneously

Just how small is your screen.... (and do you only have one???) that you can't have two instances side by side - So that you can see both at once.

You sure demand a lot without being willing to put in the minimum effort yourself (like clicking an extra time with the mouse...)
by tornsoul
Mon Jul 12, 2021 6:12 pm
Forum: Ren'Py Questions and Announcements
Topic: Showing two languages in-game simultaneously
Replies: 7
Views: 1624

Re: Showing two languages in-game simultaneously

How about simply having two instances of the same game running at the same time.
One for each language.

No change or coding needed.
by tornsoul
Mon Jul 12, 2021 3:55 pm
Forum: Ren'Py Questions and Announcements
Topic: Rewinding
Replies: 3
Views: 1165

Re: Rewinding

A minimal code example showing the behavior would go a long way to figure out if it's a Renpy bug or (more likely) something in your code.
by tornsoul
Mon Jul 12, 2021 3:49 pm
Forum: Ren'Py Questions and Announcements
Topic: Is there a way to know in which language is the game right now?
Replies: 9
Views: 1027

Re: Is there a way to know in which language is the game right now?

ah yes - I was assuming he was already centering - and the code we saw was just an attempt to fix.

Do yourself a favor and use centering (xcenter or xalign) in this case - then you don't have to worry about the language.
by tornsoul
Mon Jul 12, 2021 12:02 pm
Forum: Ren'Py Questions and Announcements
Topic: Is there a way to know in which language is the game right now?
Replies: 9
Views: 1027

Re: Is there a way to know in which language is the game right now?

Are you *100%* sure that you have enough room for the (long spanish) text in whatever "box" you are placing it in?

Sounds like it might not have enough room - and thus "overflows" the box it's in (and thus looks as if it's not centered, because it's taking up all the box + a bit)
by tornsoul
Mon Jul 12, 2021 11:54 am
Forum: Ren'Py Questions and Announcements
Topic: Unable to play Any RenPy games from External HDD's
Replies: 3
Views: 913

Re: Unable to play Any RenPy games from External HDD's

No clue but: Try right-clicking the game exe and "run as administrator" see if it makes any difference (not sure why that would even be needed - But worth a shot)
by tornsoul
Mon Jul 12, 2021 11:46 am
Forum: Ren'Py Questions and Announcements
Topic: Can you change a full layered image with a variable?
Replies: 1
Views: 1109

Re: Can you change a full layered image with a variable?

You will probably have to be a bit more specific to get useful answers. As is - There's nothing in Renpy preventing you from doing that - So go ahead. But it's a bit like asking "Can I pour water into a glass?". - Yes you can - But do you have something to pour with. Do you even have water...
by tornsoul
Sun Jul 11, 2021 4:45 pm
Forum: Ren'Py Questions and Announcements
Topic: How to speed up child rendering of CDD?
Replies: 1
Views: 637

Re: Speed up child rendering of CDD

Full plug&play test code init python: class Board: def __init__(self, size = 20, tile_size = 16): self.size = size self.tile_size = tile_size self.tiles_state = [ [0 for _ in range(self.size)] for _ in range(self.size) ] self.gutter = 100 self.active_tile = (0, 0) self.tile_set = [ Fixed( Solid(...
by tornsoul
Sun Jul 11, 2021 4:45 pm
Forum: Ren'Py Questions and Announcements
Topic: How to speed up child rendering of CDD?
Replies: 1
Views: 637

How to speed up child rendering of CDD?

(Full test code in 2nd post - Just the interesting bit in this post) I've made a CDD that draws a (configurable) 50*50 grid of tiles (child_render_1) (that's 2500 tiles) Or it can simply draw one big Solid (child_render_2) Child_render_2 is way faster than child_render_1 Why? And what can I do to sp...
by tornsoul
Mon Jul 05, 2021 11:28 am
Forum: Ren'Py Questions and Announcements
Topic: [Solved]Only one of two variables is updated in UDD
Replies: 7
Views: 1087

Re: Only one of two variables is updated in UDD

I guess I wasn't paying attention to the right things.

I put in a renpy.restart_interaction() right after where I update the mouse position - and I now see the text updating....