Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » How to flip sprites?
- IvyEcho
-
Scratcher
9 posts
How to flip sprites?
Hello, I want to be able to flip a sprite so that it's facing the other way, but not upside-down, if that makes any sense. If anyone knows a way to do this, please help. Regards, IvyEcho.
- codeman1044
-
Scratcher
1000+ posts
How to flip sprites?
Well, there are two ways to do this, so maybe you only found one of them. If you found both, don't bother reading this. Sorry for an unnecessary message!
If you haven't found both ways, I'll list them both:
1. In the costume editor, when you select the cursor tool, you will be presented with an option to flip horizontally. In bitmap mode, this flips the entire costume around and can move something from the left to the right and vice versa, but in vector mode, it flips each object around horizontally while keeping the object in place.
2. There is a block under motion which sets the rotation style: left-right (which is the default option), all around (which your sprite defaults to) or don't rotate. Using left-right acts like bitmap, flipping the sprite horizontally and moving the costume's position. However, this does not affect the sprite's x and y position.
Hope this helps!
If you haven't found both ways, I'll list them both:
1. In the costume editor, when you select the cursor tool, you will be presented with an option to flip horizontally. In bitmap mode, this flips the entire costume around and can move something from the left to the right and vice versa, but in vector mode, it flips each object around horizontally while keeping the object in place.
2. There is a block under motion which sets the rotation style: left-right (which is the default option), all around (which your sprite defaults to) or don't rotate. Using left-right acts like bitmap, flipping the sprite horizontally and moving the costume's position. However, this does not affect the sprite's x and y position.
Hope this helps!
- Random_Artist4418
-
Scratcher
17 posts
How to flip sprites?
Thanks a lot! I also needed this for my project!
- deck26
-
Scratcher
1000+ posts
How to flip sprites?
Thanks a lot! I also needed this for my project!No need to necropost to thank people though. All it does is bump someone currently needing help from the top page of the forum.
- awtyagrawals
-
Scratcher
100+ posts
How to flip sprites?
Well, there are two ways to do this, so maybe you only found one of them. If you found both, don't bother reading this. Sorry for an unnecessary message!Here is the code way visually:
If you haven't found both ways, I'll list them both:
1. In the costume editor, when you select the cursor tool, you will be presented with an option to flip horizontally. In bitmap mode, this flips the entire costume around and can move something from the left to the right and vice versa, but in vector mode, it flips each object around horizontally while keeping the object in place.
2. There is a block under motion which sets the rotation style: left-right (which is the default option), all around (which your sprite defaults to) or don't rotate. Using left-right acts like bitmap, flipping the sprite horizontally and moving the costume's position. However, this does not affect the sprite's x and y position.
Hope this helps!
set rotation style [don't rotate v]
turn cw (180) degrees
- deck26
-
Scratcher
1000+ posts
How to flip sprites?
Don't rotate will block any flipping so that's not exactly much help. Please try to avoid necroposting but also make sure what you post makes sense.Well, there are two ways to do this, so maybe you only found one of them. If you found both, don't bother reading this. Sorry for an unnecessary message!Here is the code way visually:
If you haven't found both ways, I'll list them both:
1. In the costume editor, when you select the cursor tool, you will be presented with an option to flip horizontally. In bitmap mode, this flips the entire costume around and can move something from the left to the right and vice versa, but in vector mode, it flips each object around horizontally while keeping the object in place.
2. There is a block under motion which sets the rotation style: left-right (which is the default option), all around (which your sprite defaults to) or don't rotate. Using left-right acts like bitmap, flipping the sprite horizontally and moving the costume's position. However, this does not affect the sprite's x and y position.
Hope this helps!set rotation style [don't rotate v]
turn cw (180) degrees
- Medusozoa
-
Scratcher
1 post
How to flip sprites?
Don't rotate will block any flipping so that's not exactly much help. Please try to avoid necroposting but also make sure what you post makes sense.Well, there are two ways to do this, so maybe you only found one of them. If you found both, don't bother reading this. Sorry for an unnecessary message!Here is the code way visually:
If you haven't found both ways, I'll list them both:
1. In the costume editor, when you select the cursor tool, you will be presented with an option to flip horizontally. In bitmap mode, this flips the entire costume around and can move something from the left to the right and vice versa, but in vector mode, it flips each object around horizontally while keeping the object in place.
2. There is a block under motion which sets the rotation style: left-right (which is the default option), all around (which your sprite defaults to) or don't rotate. Using left-right acts like bitmap, flipping the sprite horizontally and moving the costume's position. However, this does not affect the sprite's x and y position.
Hope this helps!set rotation style [don't rotate v]
turn cw (180) degrees
It was just a mistake, and if you were to read what they wrote you would realise what they meant:
set rotation style [left-right]
turn cw (180) degrees
- joshuaho
-
Scratcher
1000+ posts
How to flip sprites?
Hey folks, thanks for helping out! However, this thread appears to be pretty old. Before responding to a topic, please make sure it's recent and the original poster still needs an answer. Thanks! 

- Discussion Forums
- » Help with Scripts
-
» How to flip sprites?