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

#1 2013-04-11 21:31:35

joshuasports
New Scratcher
Registered: 2013-03-13
Posts: 5

How can I make my sprite change costumes while moving?

I need to make a man walking
I'm new to Scratch

Offline

 

#2 2013-04-11 22:22:05

Maltese_Falcon
Scratcher
Registered: 2013-03-25
Posts: 100+

Re: How can I make my sprite change costumes while moving?

when gf clicked
forever
if <[right arrow v] key pressed>
move [10] steps
end

when gf clicked
forever // Keep checking
if <[right arrow v] key pressed> //if the Right arrow is pressed
next costume // Switch between different phases of walking
wait [0.1] secs // Wait 0.1 seonds before switching costumes again
end
I wouldn't put those two together because then you'd move 10 steps, then switch costume, then wait a bit, then move 10 steps, etc.

Offline

 

#3 2013-04-14 13:56:39

kimlot
Scratcher
Registered: 2013-03-28
Posts: 12

Re: How can I make my sprite change costumes while moving?

Take a look at this project 'Garcon qui marche'. It shows a man walking smoothly. Although this has been created by someone who speaks French, download the project  anyway and single step through the code which is mostly in English. You can also copy the costumes of the walking man in your own project. It is quite a cool project, I think!.

Offline

 

#4 2013-04-14 13:59:43

kimlot
Scratcher
Registered: 2013-03-28
Posts: 12

Re: How can I make my sprite change costumes while moving?

Here is the link to the project I mentioned above.

http://scratch.mit.edu/projects/memc2orr/3261394

Offline

 

Board footer