Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Walking + Animation?
- Panganay19
-
Scratcher
19 posts
Walking + Animation?
its easy
< = >
number
when green flag clicked
go to x: (0) y: (0)
clear graphic effectsswitch costume to
show
wait (.3) secs
repeat until <>(costume #)
< = >
number
next costume
- Dino-mite_Girl
-
Scratcher
5 posts
Walking + Animation?
if you want to learn to animate here are 2 codes you can you while making a project if your new
this one is for costumes
this one is your character/costume going up and down
this one is for costumes
when green flag clicked
forever
wait (as much secs you want) secs
next costume
end
this one is your character/costume going up and down
when green flag clicked
forever
glide (.1) secs to x: (0) y: (10)
glide (.1) secs to x: (0) y: (10)
glide (.1) secs to x: (0) y: (0)
end
- ResuluteAziz_90
-
Scratcher
1 post
Walking + Animation?
when green flag clicked
move () steps
next costume
- Gage_Rage
-
Scratcher
39 posts
Walking + Animation?
here is how you would do that.thank you i needed that
make a script for walking, for example:when [Space v] key pressed
move (10) steps
point towards [Mouse-pointer v]
then for you're walking animation, you would make another script with the if key pressed using the same key as your movement key. like thiswhen [Space v] key pressed
if <key [Space v] pressed?> then
forever
next costume
wait (0.09) secs
end
else
stop [This script v]
end
if this dosent work, please let me know!
- K3v_D3v
-
Scratcher
100+ posts
Walking + Animation?
Please stop necroposting! This posts was from 2 years ago, and it was solved, you can always create a new topic. Thanks!
- myzman123number2
-
Scratcher
6 posts
Walking + Animation?
when green flag clicked
forever
next costume
end
for animation
when [ up arrow ] key pressed
change y by (10)
for moving
Last edited by myzman123number2 (Oct. 14, 2020 02:53:36)
- Discussion Forums
- » Help with Scripts
-
» Walking + Animation?







