Search found 45 matches

by OrsonDeWitt
Wed Jan 25, 2023 8:12 am
Forum: Ren'Py Questions and Announcements
Topic: Detecting mouse clicks outside of action statements?
Replies: 12
Views: 840

Re: Detecting mouse clicks outside of action statements?

Probably it has something to do with the mouse property of button displayables. You can specify the string there such as "spin" to change the mouse cursor when clicked or something. So my guess is that it overrides what your mouse changer code does. It's a property only for the focus... I...
by OrsonDeWitt
Wed Jan 25, 2023 7:02 am
Forum: Ren'Py Questions and Announcements
Topic: Detecting mouse clicks outside of action statements?
Replies: 12
Views: 840

Re: Detecting mouse clicks outside of action statements?

enaielei wrote: Tue Jan 24, 2023 5:52 pm I'm not sure what you mean by that.
When I click on button or imagebutton, the cursor does not change as it does when clicking any other space in the game
by OrsonDeWitt
Tue Jan 24, 2023 2:39 pm
Forum: Ren'Py Questions and Announcements
Topic: Detecting mouse clicks outside of action statements?
Replies: 12
Views: 840

Re: Detecting mouse clicks outside of action statements?

enaielei wrote: Tue Jan 24, 2023 11:35 am That is mouse release though. Left mouse button release.
See my initial code where I plainly used "mousedown_1" (no prefix) as the event as an example.
You are right, I must've been overthinking it... thank you. Do you happen to know why it doesn't work on buttons?
by OrsonDeWitt
Tue Jan 24, 2023 10:41 am
Forum: Ren'Py Questions and Announcements
Topic: Detecting mouse clicks outside of action statements?
Replies: 12
Views: 840

Re: Detecting mouse clicks outside of action statements?

enaielei wrote: Tue Jan 24, 2023 7:58 am I think the "keyup_" prefix is meant for keyboard keys only, probably what you mean is mouseup_1.
No, I wanted to detect mouse release.
by OrsonDeWitt
Tue Jan 24, 2023 6:41 am
Forum: Ren'Py Questions and Announcements
Topic: Detecting mouse clicks outside of action statements?
Replies: 12
Views: 840

Re: Detecting mouse clicks outside of action statements?

It means that you're using an old version of renpy. It's available in 8.0 / 7.5 . You can always use the config.overlay_screens variable instead. config.overlay_screens.append("mouse_changer") But if your concern is to always show the screen even in main_menu then you can try this. Since ...
by OrsonDeWitt
Fri Jan 20, 2023 5:55 pm
Forum: Ren'Py Questions and Announcements
Topic: Detecting mouse clicks outside of action statements?
Replies: 12
Views: 840

Re: Detecting mouse clicks outside of action statements?

Untested but should give you the idea. Not really, unfortunately... I've tried it out, and it gives me "Exception: config.always_shown_screens is not a known configuration variable." error. I've tried defining it like this and putting it before, define config.always_shown_screens += [&quo...
by OrsonDeWitt
Fri Jan 20, 2023 12:58 pm
Forum: Ren'Py Questions and Announcements
Topic: Detecting mouse clicks outside of action statements?
Replies: 12
Views: 840

Detecting mouse clicks outside of action statements?

Hello, So I am trying to change the mouse cursor when the player clicks somewhere — regardless the location. So far I have this function, but it does not work outside of console because I can't figure out where and how to call the function on a permanent basis. Any help? Thank you! init python: impo...
by OrsonDeWitt
Thu Jan 19, 2023 7:47 am
Forum: Ren'Py Questions and Announcements
Topic: 2160p/4k?
Replies: 5
Views: 719

Re: 2160p/4k?

Scaling down often introduces moire patterns: https://en.wikipedia.org/wiki/Aliasing (check images on the right) Surely I'm not the only one who has pondered about screen sizes. I want it to look perfect both on 1440p and 720p. How do I achieve that? Is there some kind of CSS-style definition for d...
by OrsonDeWitt
Wed Jan 18, 2023 6:22 pm
Forum: Ren'Py Questions and Announcements
Topic: 2160p/4k?
Replies: 5
Views: 719

Re: 2160p/4k?

Several reasons. Performance, compatibility, battery life for mobile devices, output file size of the build, scaling (as large images are scaled smaller, a lot of the detail is crushed out of the image or blurred beyond recognition) Larger images don't always mean higher quality artwork either. A l...
by OrsonDeWitt
Mon Jan 16, 2023 10:30 am
Forum: Ren'Py Questions and Announcements
Topic: 2160p/4k?
Replies: 5
Views: 719

2160p/4k?

Hello everyone,
I was wondering if there is any reason not to use the biggest possible resolution as default (apart from bigger assets)? I assume that no matter the size, renpy will resize it neatly for all the smaller screens, right? Or is there anything to keep in mind here? Thank you!
by OrsonDeWitt
Thu Feb 17, 2022 8:41 am
Forum: Ren'Py Questions and Announcements
Topic: Weird behavior on hover
Replies: 0
Views: 1037

Weird behavior on hover

Hello! I am using a system where whenever a character ends speaking, his avatar is placed in a stack above the textbox. Unfortunately, I have encountered some weird behavior. If I, as the player, make choice, then everything is fine and other avatars are being shown above the textbox even if I hover...
by OrsonDeWitt
Thu Jul 15, 2021 9:20 am
Forum: Ren'Py Questions and Announcements
Topic: Side images that stay on screen?
Replies: 4
Views: 1390

Re: Side images that stay on screen?

Okay, I have figured it out. Indeed, I did not have to use side images for this, and I did not even have to use "show" for this. If anyone is going to be looking for a solution, here's mine: (and a bonus question at the end) - script.rpy: default interlocutors = [] # we start with an empty...
by OrsonDeWitt
Tue Jul 06, 2021 7:06 am
Forum: Ren'Py Questions and Announcements
Topic: Side images that stay on screen?
Replies: 4
Views: 1390

Re: Side images that stay on screen?

Imperf3kt wrote: Mon Jul 05, 2021 5:39 pm You probably want a character callback.
https://www.renpy.org/doc/html/characte ... -callbacks
I probably do, but I've been reading for hours and unfortunately have not found a way to achieve this.
by OrsonDeWitt
Mon Jul 05, 2021 4:14 pm
Forum: Ren'Py Questions and Announcements
Topic: Side images that stay on screen?
Replies: 4
Views: 1390

Side images that stay on screen?

Hello. I have looked through dozens of forum posts with similar discussions, but after trying all of them, nothing seems to work for my particular case. I have recently begun working on the visual side of my game and, despite thinking that it would be easy enough, have hit a roadblock that I can't o...
by OrsonDeWitt
Sat May 08, 2021 11:50 am
Forum: Ren'Py Questions and Announcements
Topic: Grayscaling & focus for tutorial?
Replies: 5
Views: 1229

Grayscaling & focus for tutorial?

Hi! I've been trying to make a tutorial for my game, wherein as everything is explained it is also highlighted with a contour, or the whole of the screen is made into grayscale except for the part of the screen in question (say, as a colored square while everything else is gray). I assume Renpy does...