Search found 8 matches

by __ess__
Wed May 25, 2022 6:04 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Bug? get_physical_size() and get_mouse_pos() unexpected values with resized window.
Replies: 5
Views: 370

Re: Bug? get_physical_size() and get_mouse_pos() unexpected values with resized window.

Just want to give an update to say that I adjusted my project to use the config.screen_width and config.screen_height instead to account for this behaviour to make it function as per my needs for my project. Thanks again for informing me @m_from_space. Perhaps this thread can be useful to others who...
by __ess__
Wed May 25, 2022 5:47 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Bug? get_physical_size() and get_mouse_pos() unexpected values with resized window.
Replies: 5
Views: 370

Re: Bug? get_physical_size() and get_mouse_pos() unexpected values with resized window.

Well, if you have a project that's 1280 x 720 and then resize the window, the project (luckily) is still considered 1280 x 720, otherwise your images would not be part of the screen anymore if you set them at a position that is not relative to the screen and hotspots wouldn't work. I think it's wor...
by __ess__
Wed May 25, 2022 4:02 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Bug? get_physical_size() and get_mouse_pos() unexpected values with resized window.
Replies: 5
Views: 370

[SOLVED] Bug? get_physical_size() and get_mouse_pos() unexpected values with resized window.

Hello! I have an issue with resizing the game window and getting accurate values from get_physical_size and get_mouse_pos functions and I'm unsure if I'm missing something or if this is a bug. Have been reading through some of the documentation pertaining this but haven't found anything that would e...
by __ess__
Tue Nov 09, 2021 3:44 am
Forum: Ren'Py Questions and Announcements
Topic: renpy.transition only works if run directly from an action?
Replies: 1
Views: 531

Re: renpy.transition only works if run directly from an action?

Ah, I solved it. The problem stems from a mouse click. The transition I'm trying to run when switching screens is intercepted by a mouse click that doesn't manage to finish completely before the transition starts, so it gets interrupted. I had a suspicion this was the cause but didn't try it until n...
by __ess__
Mon Nov 08, 2021 1:49 pm
Forum: Ren'Py Questions and Announcements
Topic: renpy.transition only works if run directly from an action?
Replies: 1
Views: 531

renpy.transition only works if run directly from an action?

Hello. I'm wondering if I'm correct in my assumption that the function renpy.transition() only works if called directly as a result of an action? For example, I have found that I can call this piece of code: def myFun(): renpy.transition(fade) renpy.show_screen("testScreen") renpy.restart_...
by __ess__
Fri Nov 05, 2021 8:03 am
Forum: Ren'Py Questions and Announcements
Topic: CDD and rendering displayables from list?
Replies: 1
Views: 377

Re: CDD and rendering displayables from list?

Update: Decided to rework my project and test using SpriteManager instead, which is working perfectly so far for my case!
by __ess__
Tue Nov 02, 2021 1:54 pm
Forum: Ren'Py Questions and Announcements
Topic: CDD and rendering displayables from list?
Replies: 1
Views: 377

CDD and rendering displayables from list?

Hello. I have a CDD implemented which I create several instances of in a screen with a loop and set each of these to have a unique id. At some point in another class (not a displayable one), I am retrieving several of these displayables with renpy.get_displayable() in a loop and set a specific attri...