Search found 8 matches
- Thu May 19, 2022 4:43 pm
- Forum: Ren'Py Questions and Announcements
- Topic: How to get an object's own position?
- Replies: 9
- Views: 1049
Re: How to get an object's own position?
The second argument is transition. ToggleScreen("test2", transition=None, renpy.focus_coordinates()) Oooh ok, thanks. @m_from space My menu is scrollable so the button summoning the submenu can be at almost any y coordinate. The menu also contains multiple lists of items that will change ...
- Sun May 15, 2022 1:36 pm
- Forum: Ren'Py Questions and Announcements
- Topic: How to get an object's own position?
- Replies: 9
- Views: 1049
Re: How to get an object's own position?
Ok I managed to get it to work with a global Boolean telling subMenu if it should update its coordinates. Still feels like a huge hack to me and something that must surely be achievable by simpler means. :? I'd still love to know if there's a more elegant way to this and just get the coordinates for...
- Sun May 15, 2022 12:26 pm
- Forum: Ren'Py Questions and Announcements
- Topic: How to get an object's own position?
- Replies: 9
- Views: 1049
Re: How to get an object's own position?
m_from_space: Thank you for replying. :) I learned a bit from your code (didn't know about enumerate, seems handy) but your solution, while clever, kind of ignores my initial question. From what I understand it just creates empty vbox slots to achieve the illusion of position change. I have a long l...
- Sun May 15, 2022 7:59 am
- Forum: Ren'Py Questions and Announcements
- Topic: How to get an object's own position?
- Replies: 9
- Views: 1049
Re: How to get an object's own position?
Thanks for your suggestion. :) Unfortunately this is of limited use because it only gives the position of the focused displayables and is not universal. The button example was just one use case scenario. Does RenPy *seriously* not have the simple function of allowing an object (button, displayable o...
- Fri May 13, 2022 7:47 am
- Forum: Ren'Py Questions and Announcements
- Topic: How to get an object's own position?
- Replies: 9
- Views: 1049
How to get an object's own position?
This seems like a trivial question but I've been combing through the documentation and googling it and can't find an answer even though it seems like a very basic problem. Suppose I have an imagebutton which I want to show a screen and pass its own position coordinates to it. Fake code: imagebutton ...
- Sun Dec 19, 2021 7:16 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Using Transforms in an at_list, swapping Transforms
- Replies: 1
- Views: 336
Using Transforms in an at_list, swapping Transforms
Suppose I have a list of transforms, like so: init: transform faceZoom: zoom 2.5 xoffset -120 yoffset -20 transform charZoom: zoom 0.7 xpos 500 yoffset 40 Later, inside a function, I want to show a displayable at one of the transforms, something like: init python: def showChar(): renpy.show("ch...
- Fri Nov 26, 2021 5:57 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Dynamically passing variables as attributes to LayeredImage
- Replies: 2
- Views: 441
Re: Dynamically passing variables as attributes to LayeredImage
Thank you, this works as expected! I experimented a bit more and I'm able to switch attributes fairly reliably. I have a couple more questions now : 1. Is it possible to programmatically define a LayeredImage? E.g. taking a list or dict of variables and turning them into groups and attributes? I've ...
- Wed Nov 24, 2021 5:41 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Dynamically passing variables as attributes to LayeredImage
- Replies: 2
- Views: 441
Dynamically passing variables as attributes to LayeredImage
I'm trying to make a paperdoll system for a customizable character, already did some experimenting with Composite, but LayeredImage seems simpler and more elegant in many ways so I decided to try that. But I've hit a snag: I can't figure out how to make the image dynamically change attributes via ch...