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

#1 2012-06-25 13:43:30

Hariex
New Scratcher
Registered: 2012-06-25
Posts: 10

Noobie to Scratch: How do I flip my Sprite?

My intention is for the Sprite to glide in one direction, then flip, and continue in the other direction. Could anyone help this noobie out?

Offline

 

#2 2012-06-25 13:57:12

powerpoint56
Scratcher
Registered: 2012-04-19
Posts: 500+

Re: Noobie to Scratch: How do I flip my Sprite?

Well, you could make a sprite. The first costume would be the first direction of flipping. Copy this costume onto the same sprite. With the second costume, click edit. On the left-top corner of the editor, there are several icons. The last two ones on the right are the flipping ones. Experiment! One flips your sprite horizontally, one flips vertically. Flip it the way you want, and then click OK on the paint editor.

Now that you've made two costumes one flipped one way, one flipped another, give the sprite a script something like this:

when gf clicked
switch to costume [costume1 v]
forever //or "repeat until" or "repeat (?)", depends on what you have
repeat (10)
change x by (10) //I'm not sure if this is being flipped vertically or horizontally
end 
switch to costume[costume2 v]//script here for horizontal flip, change y for vertical
repeat (10)
change x by (-10)
end
switch to costume[costume1 v]
end
If you meant another kind of flipping, let me know and I'll be happy to help!

Last edited by powerpoint56 (2012-06-25 13:58:43)


http://i48.tinypic.com/2072ctw.gif

Offline

 

#3 2012-06-25 14:03:50

zammer990
Scratcher
Registered: 2012-01-22
Posts: 500+

Re: Noobie to Scratch: How do I flip my Sprite?

easiest way would be to say glide to X Y then turn 180 degrees. Before doing this make sure to set the sprites rotation to horizontal flip only, the controls are found next the the sprites image, x and y pos etc


http://i45.tinypic.com/2ynq7nn.jpg Play now!

Offline

 

#4 2012-06-25 14:17:03

Hariex
New Scratcher
Registered: 2012-06-25
Posts: 10

Re: Noobie to Scratch: How do I flip my Sprite?

Cheers; you both helped.

Offline

 

#5 2012-06-25 14:19:41

powerpoint56
Scratcher
Registered: 2012-04-19
Posts: 500+

Re: Noobie to Scratch: How do I flip my Sprite?

yay!  big_smile


http://i48.tinypic.com/2072ctw.gif

Offline

 

Board footer