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

#1 2009-05-17 16:11:56

MetalWorker
Scratcher
Registered: 2009-05-14
Posts: 6

Need help with staying still!

Hi! I'm making a game and I want to know how to make it so when no keys are pressed, the character goes to the standing animation. Thanks!
~MetalWorker

Offline

 

#2 2009-05-17 16:56:08

coolstuff
Community Moderator
Registered: 2008-03-06
Posts: 1000+

Re: Need help with staying still!

are you trying to make a moving script?

Offline

 

#3 2009-05-17 16:57:53

MetalWorker
Scratcher
Registered: 2009-05-14
Posts: 6

Re: Need help with staying still!

Yeah, when i press the right arrow it goes costume1, left arrow costume2 ect....
I want it so when i release all the buttons, none are pressed, i want it to go to costume 0.

Offline

 

#4 2009-05-17 17:49:31

fruit
Scratcher
Registered: 2009-04-24
Posts: 1000+

Re: Need help with staying still!

<when green flag clicked>
<forever if><<  <not> << <key[ up ]pressed?><and><key[ down ]pressed?> << <key[ left ]pressed?> <and> <key[ right ]pressed?> >> >>
<switch to costume[ 1


@savi3000 | hcsmp.com

Offline

 

#5 2009-05-17 17:54:36

ScratchX
Scratcher
Registered: 2009-05-05
Posts: 1000+

Re: Need help with staying still!

that may seem simple fruit but that doesn't work.

Like make it
<when green flag clicked>
<forever>
<switch to costume[ 1
<if>kep up or down or right or left pressed
<wait( .1 )secsc>
<switch to costume[ whatever

It will let it swtch costumes without the flash of the costume1


Happy New Year!
http://i45.tinypic.com/1nyasi.pnghttp://i50.tinypic.com/219pez8.pnghttp://i49.tinypic.com/e5s4zr.pnghttp://i48.tinypic.com/23l18hf.jpghttp://i49.tinypic.com/66zymu.png

Offline

 

#6 2009-05-17 20:29:28

bosox397
Scratcher
Registered: 2008-02-17
Posts: 1000+

Re: Need help with staying still!

ScratchX wrote:

that may seem simple fruit but that doesn't work.

Like make it
<when green flag clicked>
<forever>
<switch to costume[ 1
<if>kep up or down or right or left pressed
<wait( .1 )secsc>
<switch to costume[ whatever

It will let it swtch costumes without the flash of the costume1

no, his works, as long as u hold down the arrow key


Dear Scratch Users,
I'm done with scratch, or at least making projects. I have made one last big game, thats both fun and teaches a lesson about water. It'd mean a lot if you gave me feedback.                              http://scratch.mit.edu/projects/bosox397/569201

Offline

 

#7 2009-05-17 20:46:00

BM99
Scratcher
Registered: 2009-05-17
Posts: 3

Re: Need help with staying still!

Here is a link to my project that I made to help you.
http://scratch.mit.edu/projects/BM99/532168

Offline

 

Board footer