Discuss Scratch
- Discussion Forums
- » Suggestions
- » Flip sprite block
- RandomPerson1789
-
Scratcher
100+ posts
Flip sprite block
They should have this block:
flip sprite [right-left v] :: motion
- djdolphin
-
Scratcher
1000+ posts
Flip sprite block
There's a work around:
set rotation style [left-right v]
turn right (180) degrees
- RandomPerson1789
-
Scratcher
100+ posts
Flip sprite block
There's a work around:what if u have it already rotated, and just want to flip the rotated version?set rotation style [left-right v]
turn right (180) degrees
- DaSpudLord
-
Scratcher
1000+ posts
Flip sprite block
That's workaroundable. Create a duplicate of the costume and flip it.There's a work around:what if u have it already rotated, and just want to flip the rotated version?set rotation style [left-right v]
turn right (180) degrees
- sithsiri
-
Scratcher
100+ posts
Flip sprite block
Support
But if this is really possible,
But if this is really possible,
change horizontal perspective by() ::looks // Am I getting my hopes up for this?Because that would make more sense.
Last edited by sithsiri (Sept. 13, 2015 12:25:29)
- CrystalScratchCat
-
Scratcher
38 posts
Flip sprite block
maybe you can do this?
when green flag clicked
set rotation style [ right-left]
switch costume to [ attack]
- CrystalScratchCat
-
Scratcher
38 posts
Flip sprite block
and then just maybe put this if you want too?
if <> then
<key [ h] pressed?>end
- Charles12310
-
Scratcher
1000+ posts
Flip sprite block
Support. If your sprite is in a certain direction, doing this:
set rotation style [left-right v]Would ruin the current position that the sprite is on. What if a sprite is at a 50 degree angle and you want it to face backwards while it's still at a 50 degree angle? Using the above won't work, the sprite won't be at 50 degrees anymore. But if we use the suggested block, the sprite will face backwards while still at a 50 degree angle.
turn cw (180) degrees
- ScriptedAwesome
-
Scratcher
1000+ posts
Flip sprite block
define flip (the angle)
if <(letter (1) of (the angle)) = [-]> then
point in direction ([abs v] of (the angle))
end
if <not<(letter (1) of (the angle)) = [-]>> then
point in direction ((the angle)*(-1))
end
Workaround.
Last edited by ScriptedAwesome (Nov. 19, 2017 16:33:32)
- jackalocked
-
Scratcher
31 posts
Flip sprite block
Support!
Even if there are many known work-arrounds, like just changing the rotation style (but then you wont be able to normally rotate the sprite in that rotation style), or just duplicate the costumes and then manually flip them (which it's not very practical, SPECIALLY if you have LOTS of costumes that need to follow this rotation style).
The main issue would be the new scratchers being confused with this mechanic, but there could be just a button next to “direction” in the sprite's tab (not the coding tab, im talking about the shortcut tab where you can change the sprite's name and etc right bellow the project visualizer) that indicates if the sprite is flipped or not, and that can be toggleable just like the direction angle & style in that same tab.
Just mentioned above, the known workarrounds aren't very practical (if you want to flip the sprite while still being able to rotate), and the duplicate costume workarround is time consuming (or “non-practical” once again) and could impact the project's perfomance if you have too many costumes (and if it's way too many then the grey box could appear and break the entire thing).
Even if there are many known work-arrounds, like just changing the rotation style (but then you wont be able to normally rotate the sprite in that rotation style), or just duplicate the costumes and then manually flip them (which it's not very practical, SPECIALLY if you have LOTS of costumes that need to follow this rotation style).
The main issue would be the new scratchers being confused with this mechanic, but there could be just a button next to “direction” in the sprite's tab (not the coding tab, im talking about the shortcut tab where you can change the sprite's name and etc right bellow the project visualizer) that indicates if the sprite is flipped or not, and that can be toggleable just like the direction angle & style in that same tab.
Just mentioned above, the known workarrounds aren't very practical (if you want to flip the sprite while still being able to rotate), and the duplicate costume workarround is time consuming (or “non-practical” once again) and could impact the project's perfomance if you have too many costumes (and if it's way too many then the grey box could appear and break the entire thing).
- LaughabIe
-
Scratcher
100+ posts
Flip sprite block
normally i wouldn’t account workarounds for suggestions but i feel like the workaround is way too simple, almost as if the suggestion exists already!
we don’t need blocks like this which clutter the editor especially if it’s extremely easy to replicate as shown above.
set rotation style [left-right v]
turn right (180) degrees
we don’t need blocks like this which clutter the editor especially if it’s extremely easy to replicate as shown above.
- Discussion Forums
- » Suggestions
-
» Flip sprite block