flipping animation - I want to flip a display group

Hi
I want to flip an entire display group and it include many things like:

  1. display.newText()
  2. display.newImageRect()
  3. display.newRoundedRect()
  4. mask

I’ve read the documentation about graphic 2.5D and I figured out that only Rectangles and images could be distorted and we access to four-cornered points of them. 

Is there any way I could flip a display Group with all of its content?

please help,

Thanks already

Hi @mohammadalisaatchi,

One method is to use a snapshot which basically takes an entire group of objects and renders them into one texture. At that point, you can manipulate the texture using 2.5D effects and so forth.

https://docs.coronalabs.com/guide/graphics/snapshot.html

Another way would be to use “display.capture()” on the group and then use 2.5D effects on that returned image object:

https://docs.coronalabs.com/api/library/display/capture.html

Hope this helps,

Brent

that did the trick. 
Thanks

Hi @mohammadalisaatchi,

One method is to use a snapshot which basically takes an entire group of objects and renders them into one texture. At that point, you can manipulate the texture using 2.5D effects and so forth.

https://docs.coronalabs.com/guide/graphics/snapshot.html

Another way would be to use “display.capture()” on the group and then use 2.5D effects on that returned image object:

https://docs.coronalabs.com/api/library/display/capture.html

Hope this helps,

Brent

that did the trick. 
Thanks