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

#1 2008-10-21 23:06:40

hellokitty-96
Scratcher
Registered: 2008-10-09
Posts: 15

Switching costumes while Jumping

Hi!
I need help...
I am trying to switch costumes while jumping in the air for my sprite!
but I don't know how to do that...
This isn't too urgent but it would be nice if someone would reply soon!

Thanks alot!


-hellokitty-96

Offline

 

#2 2008-10-21 23:19:25

hmnwilson
Scratcher
Registered: 2007-07-04
Posts: 1000+

Re: Switching costumes while Jumping

You just have to make the costume switching and jumping two different scripts. I'll just say the jumping key is the up arrow, because I don't really know what key you want to use to jump. So you'd have the jumping scripts activate when key up arrow is pressed, and at the same time, another script activates when up arrow key is pressed as well. Then you just have to change costumes whenever you want them to, but it'll happen while you jump.

Does that help you?


I'm taking a break from Scratch until 2.0 comes out. Any messages sent between then and now probably won't be read - sorry.
(Oct. 20, 2011)

Offline

 

#3 2008-10-22 00:09:23

hellokitty-96
Scratcher
Registered: 2008-10-09
Posts: 15

Re: Switching costumes while Jumping

Well... Sort of... but I don't know how to activate the other script...

Offline

 

#4 2008-10-22 09:12:16

archmage
Scratcher
Registered: 2007-05-18
Posts: 1000+

Re: Switching costumes while Jumping

When jump button pressed
goto costume [jump]
wait until touching ground
goto costume [ground]


Hi, I am Archmage coder extraordinaire. I do Scratch,pascal,java,php,html, AS2 and AS3. Leave me a message if you want coding advice. Also check out my personal website, lots of good stuff about web development, Flash, and Scratch (v1 and v2) !

Offline

 

Board footer