Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Vertically mirror sprites?
- _AspiringProgrammer_
-
Scratcher
6 posts
Vertically mirror sprites?
How can I mirror a sprite vertically using only code (so no going into costumes to flip vertical)?
I'm pretty much looking for the equivalent of
I'm pretty much looking for the equivalent of
set rotation style [up-down v]
Last edited by _AspiringProgrammer_ (Oct. 19, 2022 17:16:05)
- Oumuamua
-
Scratcher
1000+ posts
Vertically mirror sprites?
How can I mirror a sprite vertically using only code (so no going into costumes to flip vertical)?
I'm pretty much looking for the equivalent ofset rotation style [up-down v]
No way(i think); Anyway what is the problem with a flipped sprite?

Last edited by Oumuamua (Oct. 19, 2022 17:56:19)
- _AspiringProgrammer_
-
Scratcher
6 posts
Vertically mirror sprites?
Thanks, for the response. The thing is, I want to have both a right side up and an upside down version.
I'm making a birds-eye-view shooting game, but right now I'm using two gun costumes to make sure it's always the right way up. However, I have different gun skins which I don't want to alter upside down as well (the costumes would be cluttered).
The prototype game (nowhere close to finished) is public, if you want to examine it closer. The game
I'm making a birds-eye-view shooting game, but right now I'm using two gun costumes to make sure it's always the right way up. However, I have different gun skins which I don't want to alter upside down as well (the costumes would be cluttered).
The prototype game (nowhere close to finished) is public, if you want to examine it closer. The game
Last edited by _AspiringProgrammer_ (Oct. 19, 2022 18:23:42)
- BigEmster8
-
Scratcher
12 posts
Vertically mirror sprites?
You could create a clone, rotate it and stamp it with the pen extension possibly
Last edited by BigEmster8 (Oct. 19, 2022 20:30:05)
- sushi_slamer
-
Scratcher
100+ posts
Vertically mirror sprites?
create clone of [ cat]
when I start as a clone
change y by [ no idea how much but probably like -50]
point in direction ( 180)
Last edited by sushi_slamer (Oct. 19, 2022 21:08:59)
- _AspiringProgrammer_
-
Scratcher
6 posts
Vertically mirror sprites?
Thanks for the help, but if you looked at what the gun does it's a slightly different problem (since the gun isn't symmetrical)
- deck26
-
Scratcher
1000+ posts
Vertically mirror sprites?
I think you're going to have to have duplicate costumes. There is no combination of costume controls which will give you what you want just using code.
- Discussion Forums
- » Help with Scripts
-
» Vertically mirror sprites?





