Yo!
i need an offset so the point pos (0,0) or align (0,0) will be moved from top-left corner to somewhere on the middle. that would be very handy porting some game. thanks!
[solved] apply default offset to all objects within a layer?
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
[solved] apply default offset to all objects within a layer?
Last edited by SONTSE on Sun Jan 18, 2015 5:47 pm, edited 1 time in total.
Look! It's moving. It's alive. It's alive... IT'S ALIVE! Oh, in the name of God! Now I know what it feels like to be God!(@Henry_Frankenstein. Sums up my coding style)
Re: can i apply default offset to all objects within a layer
1) Prolly depends on how the objects are displayed. You could iterate of the list of displayable/widgets and do weird stuff to them 
2) Is that not the same as repositioning the layer? I believe that I've read that transforms can be applied to all displayable shown on any specific layer, that might be worth of trying out.
2) Is that not the same as repositioning the layer? I believe that I've read that transforms can be applied to all displayable shown on any specific layer, that might be worth of trying out.
Re: can i apply default offset to all objects within a layer
Thanks for a brilliant hint, xela n__n.xela wrote: I believe that I've read that transforms can be applied to all displayable shown on any specific layer
That reminded me i saw something like this somewhere too.
...and this was in "Tutorial" game. Silly me ^^'''''''''
so my solution comes to:
Code: Select all
show layer master:
offset (100,100)
Look! It's moving. It's alive. It's alive... IT'S ALIVE! Oh, in the name of God! Now I know what it feels like to be God!(@Henry_Frankenstein. Sums up my coding style)
Who is online
Users browsing this forum: Bing [Bot], Google [Bot]
