-
Notifications
You must be signed in to change notification settings - Fork 744
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No Easy way to flip a sprite? #314
Comments
Erm. I'm technically responsible for the paint editor one. |
Scratch and Snap let you flip costumes by setting the sprite's rotation mode to "only face left/right". To accomplish this the Costume constructor has a method named "flipped()" - in line 5270 of objects.js. This method returns a copy of the costume that is mirrored along a vertical axis. Since we don't yet expose costumes as first-class members in Snap there is not yet a block for this. But - as the function is already there - it is trivial to add one. :) |
Oh cool, thanks! :) Would it make the most sense to add this as an option to the current Michael Ball On Tue, Jan 28, 2014 at 11:26 PM, Jens Mönig notifications@github.comwrote:
|
The left-right button is okay for rotation around the vertical axis, although sometimes I want to change the costume permanently because the picture I clipped from Google Images faces left and so if I use it as a costume the sprite moves backwards from the way it's facing. But none of this lets us flip around the horizontal axis. With respect to the block question, I think that flipping in the Paint Editor is a permanent change to the underlying costume, but flipping programmatically is indeed a graphics effect. |
👍 to brianharvey |
I'm going to close this since costume editing is what a lot of people like to use. :) (Though, eventually, a temporary/programatic solution would be great.) |
Am I missing something?
Is there no command to either flip a sprite (x or y axis) via a command block OR using the costume editor?
If not, I think it would be great if one of the Berkeley students could work on this because it's a PERFECT teaching exercise. :)
The text was updated successfully, but these errors were encountered: