This site requires JavaScript, please enable it in your browser!
Greenfoot back
Mishti
Mishti wrote ...

2013/9/23

Mirror Actor

Mishti Mishti

2013/9/23

#
How would you take an actor and flip it. I have a whale but when I turn it, it turn upside down, but I need it to face left from right.
Zamoht Zamoht

2013/9/23

#
Use getImage().mirrorHorizontally(); Where you need to mirror the actor.
danpost danpost

2013/9/23

#
If using ''turn', or 'setRotation', with the 'move' method, use 'mirrorVertically'; else, use 'mirrorHorizontally'.
Mishti Mishti

2013/9/23

#
:) oh! thank you
You need to login to post a reply.