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

#1 2013-04-03 09:48:28

benthegamer007
New Scratcher
Registered: 2013-04-03
Posts: 1

costume changing

How can I get a sprite, when it's on costume 1, to switch to costume 2, lets say when I press the space key, and then when I press the space key again to go back to costume 1, and so on. Sort of like a toggle.

Offline

 

#2 2013-04-03 12:56:40

xlk
Scratcher
Registered: 2013-03-18
Posts: 57

Re: costume changing

when gf clicked
forever
 wait until <[space] is pressed?>
 if <(costume #) = [1]>
  change costume to [2]
 else
  change costume to [1]
 end
end

Offline

 

#3 2013-04-03 13:43:34

topazdragonlord
Scratcher
Registered: 2013-02-22
Posts: 500+

Re: costume changing

Try this  smile

when [space v] key pressed//when the key you want is pressed
next costume//switch to the next costume
hope this helps  smile   big_smile   cool


http://i45.tinypic.com/idumbk.png

Offline

 

Board footer