im.Flip and composite images

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
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.
Post Reply
Message
Author
agl
Regular
Posts: 54
Joined: Tue Jul 19, 2016 5:09 am
Contact:

im.Flip and composite images

#1 Post by agl »

Looks like Function "im.Flip" does not work with composite images.
Is there any simple way to reflect the composite image horizontally?

User avatar
Remix
Eileen-Class Veteran
Posts: 1628
Joined: Tue May 30, 2017 6:10 am
Completed: None... yet (as I'm still looking for an artist)
Projects: An un-named anime based trainer game
Contact:

Re: im.Flip and composite images

#2 Post by Remix »

Three options I can think of... all untested

im.Flip every component of the composite individually - might mean adjusting the (x, y) tuple though

maybe im.Flip( renpy.display.layout.Flatten( the composite ) ) - iffy as Flatten is a Container so might not work on just a composite - also pretty expensive time wise

or using ATL and xzoom flip

show compy_image:
.... xzoom -1.0
Frameworks & Scriptlets:

agl
Regular
Posts: 54
Joined: Tue Jul 19, 2016 5:09 am
Contact:

Re: im.Flip and composite images

#3 Post by agl »

Remix wrote: Sat Nov 18, 2017 8:56 am show compy_image:
.... xzoom -1.0
thank you! this is exactly that I'm lookig for!

Post Reply

Who is online

Users browsing this forum: Google [Bot]