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: 45
Joined: Tue Jul 19, 2016 5:09 am
Contact:

im.Flip and composite images

#1 Post by agl » Sat Nov 18, 2017 7:50 am

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
Miko-Class Veteran
Posts: 989
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 » Sat Nov 18, 2017 8:56 am

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
Mad Scientist Todo List:
  • Finish Improved Event Handler
  • Implement DragonBones animation as a Creator Defined Container
  • Finish Catmull-Rom Spline pathing
  • Finish Bitmask collision and rebound vector system
  • Develop time based building mechanic
  • Others
  • *Find a superb artist and actually write a game*

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

Re: im.Flip and composite images

#3 Post by agl » Sat Nov 18, 2017 9:19 am

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: zeroTheHero