How do I get the exact, current pixel position of a Displayable on the screen?
Currently I do the following:
Code: Select all
displayable = renpy.scene_lists().get_displayable_by_tag("myLayer", "myDisplayable") displayPosition = displayable.get_placement()[0:2]
1) displayPosition won't be updated for every type of displayable (I don't realy understand this at the time. Some seem to work, other don't).
2) displayPosition won't be changed by any transforms, that are applied to the whole layer ("myLayer") of the displayable ("myDisplayable").
The goal is to get the translation & zoom values of a specific layer (For me a layer is like a local coordinate system).
Can you help me to get these pieces of information?