Just click the flag and watch. You may use the coding in one of your projects, just please give me credit.
I used cloning for this. It's very basic, but the coding is detailed. This project contains eight sprites. Enjoy!