Discuss Scratch

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.
IvyEcho
Scratcher
9 posts

How to flip sprites?

No wait never mind I figured it out. Whoops, sorry.
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!
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?

Random_Artist4418 wrote:

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?

codeman1044 wrote:

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!
Here is the code way visually:
set rotation style [don't rotate v]
turn cw (180) degrees
deck26
Scratcher
1000+ posts

How to flip sprites?

awtyagrawals wrote:

codeman1044 wrote:

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!
Here is the code way visually:
set rotation style [don't rotate v]
turn cw (180) degrees
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.
_-O0O-_
Scratcher
1 post

How to flip sprites?

if on edge, bounce
Medusozoa
Scratcher
1 post

How to flip sprites?

deck26 wrote:

awtyagrawals wrote:

codeman1044 wrote:

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!
Here is the code way visually:
set rotation style [don't rotate v]
turn cw (180) degrees
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.

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!

Powered by DjangoBB