Discuss Scratch

NMario84
Scratcher
1000+ posts

Possible to rotate AND mirror a sprites facing direction?

I was wondering if it was possible for me to rotate a sprite so it goes upside down, AND be able to mirror the sprite so it faces in the same direction as you are moving.
Sort of like a VVVVVV style mechanic of inverting gravity. But when I looked in their code of what others did, they just changed the costume to the upside down sprite instead. I don't want to do it this way, but rather having multiple sprites of the same thing just upside down, to do all the rotation and mirroring on scratch code. I think this would save a bit on resources on the long run if possible.

When I did the all around rotation, then changed it back to left-right rotation, it just flipped the sprite to right side up again. So Is this possible, or do I REALLY need the requirement to make upside down variants of my sprite to give this effect?
Yeetoburro1
Scratcher
1000+ posts

Possible to rotate AND mirror a sprites facing direction?

I'm pretty sure you do have to have separate costumes for this, although you could head over to the Help with Scripts folks to clarify.

NMario84
Scratcher
1000+ posts

Possible to rotate AND mirror a sprites facing direction?

I guess I can't move topics myself, seems kind of a waste to make another topic of the same thing but in another area.

If it's forced upside down costumes then that's kinda lame. Was going to have a lot of sprites to add to begin with so that would just double my work entirely, but whatever it is what it is.
Yeetoburro1
Scratcher
1000+ posts

Possible to rotate AND mirror a sprites facing direction?

NMario84 wrote:

I guess I can't move topics myself, seems kind of a waste to make another topic of the same thing but in another area.

If it's forced upside down costumes then that's kinda lame. Was going to have a lot of sprites to add to begin with so that would just double my work entirely, but whatever it is what it is.
I'll report it to be moved

johandsa2020
Scratcher
70 posts

Possible to rotate AND mirror a sprites facing direction?

NMario84 wrote:

I was wondering if it was possible for me to rotate a sprite so it goes upside down, AND be able to mirror the sprite so it faces in the same direction as you are moving.
Sort of like a VVVVVV style mechanic of inverting gravity. But when I looked in their code of what others did, they just changed the costume to the upside-down sprite instead. I don't want to do it this way, but rather having multiple sprites of the same thing just upside down, to do all the rotation and mirroring on scratch code. I think this would save a bit on resources in the long run if possible.

When I did the all-around rotation, then changed it back to the left-right rotation, it just flipped the sprite to right side up again. So Is this possible, or do I REALLY need the requirement to make upside-down variants of my sprite to give this effect?
I think rotation-style is possible?
I didn't understand the question

Hi am just a normal scratcher
johandsa2020
Scratcher
70 posts

Possible to rotate AND mirror a sprites facing direction?

Oh I get it I will make a script for it

Hi am just a normal scratcher
johandsa2020_alt
Scratcher
4 posts

Possible to rotate AND mirror a sprites facing direction?

Try this turbowarp.org/562837842 and click see inside
deck26
Scratcher
1000+ posts

Possible to rotate AND mirror a sprites facing direction?

Unless the costume is identical when facing right and left you'll need separate costumes or sprites.

Powered by DjangoBB