This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2011-05-30 18:29:58

ErnieParke
Scratcher
Registered: 2010-12-03
Posts: 1000+

Scratch Verison 2.1

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.


http://i46.tinypic.com/35ismmc.png

Offline

 

#2 2011-05-30 18:38:21

CloneCommando1
Scratcher
Registered: 2010-12-02
Posts: 500+

Re: Scratch Verison 2.1

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?  smile


RANDOM THOUGHT: If the tomato is a fruit, doesn't that make ketchup a smoothie?

Offline

 

#3 2011-06-20 20:31:04

ErnieParke
Scratcher
Registered: 2010-12-03
Posts: 1000+

Re: Scratch Verison 2.1

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)


http://i46.tinypic.com/35ismmc.png

Offline

 

#4 2011-06-20 21:17:14

kayybee
Scratcher
Registered: 2009-12-07
Posts: 1000+

Re: Scratch Verison 2.1

Scratch doesn't need blocks implemented of things you could already make yourself.

[set x to (0-<xposition>) for reflect on y axis, vice versa for reflect on x axis.

Last edited by kayybee (2011-06-20 21:17:24)

Offline

 

#5 2012-07-24 14:01:07

ErnieParke
Scratcher
Registered: 2010-12-03
Posts: 1000+

Re: Scratch Verison 2.1

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.


http://i46.tinypic.com/35ismmc.png

Offline

 

#6 2012-07-25 05:50:59

joefarebrother
Scratcher
Registered: 2011-04-08
Posts: 1000+

Re: Scratch Verison 2.1

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


My latest project is called http://tinyurl.com/d2m8hne! It has http://tinyurl.com/d395ygk views, http://tinyurl.com/cnasmt7 love-its, and http://tinyurl.com/bwjy8xs comments.
http://tinyurl.com/756anbk   http://tinyurl.com/iplaychess

Offline

 

#7 2012-07-25 06:24:07

SciTecCf
Scratcher
Registered: 2011-11-23
Posts: 1000+

Re: Scratch Verison 2.1

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))
end
Would reflect on x axis.

Last edited by SciTecCf (2012-07-25 06:30:23)


http://bit.ly/LCZEJRhttp://bit.ly/LSONcOhttp://bit.ly/LF3vIc
http://trinary.site40.net/images/scratchrank.php?username=SciTecCf&amp;display=small

Offline

 

#8 2012-07-25 08:45:39

ErnieParke
Scratcher
Registered: 2010-12-03
Posts: 1000+

Re: Scratch Verison 2.1

I already know how to do this, but still, thanks for trying to be helpful!


http://i46.tinypic.com/35ismmc.png

Offline

 

#9 2012-07-25 09:56:32

ErnieParke
Scratcher
Registered: 2010-12-03
Posts: 1000+

Re: Scratch Verison 2.1

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))
end
Would 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))
end
Just set the rotation lock to left/right, and your okay!

Last edited by ErnieParke (2012-07-25 09:57:52)


http://i46.tinypic.com/35ismmc.png

Offline

 

#10 2012-08-07 15:18:56

Paddle2See
Scratch Team
Registered: 2007-10-27
Posts: 1000+

Re: Scratch Verison 2.1

Closed by request of the topic owner.


http://i39.tinypic.com/2nav6o7.gif

Offline

 

Board footer