A suggestion that I have is that maybe there is a block that says "reflection on x-axis" or "reflection on y-axis". That would help a lot.
Offline
Scratch 2.0 hasn't come out yet, so, lets not worry about Scratch 2.1 yet. Also, can you tell me more about the reflection on x and y axis blocks?
Offline
I mean that basically if it's reflection on the x-axis, the sprite's mirror image(it basically becomes backwards.) goes to the opposite x coordinate as it was.
An example would be a car facing right. x=67
It would than flip on the x-axis and the car would face left. x=-67
The same rules apply with the "flip on the y-axis" block, but this time it becomes upsidedown and on the opposite y coordinate.
Last edited by ErnieParke (2012-07-23 20:11:18)
Offline
I know, but I would like a more compact way of doing this. Also, back when I posted this, I didn't know you could do that, though now I do.
Offline
In scratch 2.0 you can make your own blocks You could make that. Even in 1.4, you can do
When I receive [flip x v] set x to ((0) - (x position)) When I receive [flip y v] set y to ((0) - (y position)) when gf clicked stuff broadcast [flip x v] and wait more stuff broadcast [flip y v] and wait even more stuff
Offline
Erm...
forever clear switch to costume [flipped v] point in direction (((direction) + (180)) * (-1)) set x to ((x position) * (-1)) stamp switch to costume [notflipped v] point in direction (((direction) + (180)) * (-1)) set x to ((x position) * (-1)) endWould reflect on x axis.
Last edited by SciTecCf (2012-07-25 06:30:23)
Offline
SciTecCf wrote:
Erm...
forever clear switch to costume [flipped v] point in direction (((direction) + (180)) * (-1)) set x to ((x position) * (-1)) stamp switch to costume [notflipped v] point in direction (((direction) + (180)) * (-1)) set x to ((x position) * (-1)) endWould reflect on x axis.
This is what I would do:
forever point in direction (((direction) + (180)) * (-1)) set x to ((x position) * (-1)) point in direction (((direction) + (180)) * (-1)) set x to ((x position) * (-1)) endJust set the rotation lock to left/right, and your okay!
Last edited by ErnieParke (2012-07-25 09:57:52)
Offline