Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Walking + Animation?
- BossGamer2004
-
8 posts
Walking + Animation?
Hey, I'm kinda new here, and I know how to make the sprite walk using the arrow keys and I know how to make the sprite change costume for animation. I just don't know how to get the sprite to move with the animation and how it stop when the arrow key isn't being pressed. My last attempt had the sprite move right but constantly shift through the walk animation forever. My Scratch game is supposed to be a fighting game and the character isn't supposed to be able to move all over the screen. They're only supposed to move right and left. Anybody have any tips?
- Tookiekat_studios
-
38 posts
Walking + Animation?
here is how you would do that.
make a script for walking, for example:
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 this
if this dosent work, please let me know!
make a script for walking, for example:
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 this
if this dosent work, please let me know!
- mstone326
-
1000+ posts
Walking + Animation?
Can you share your project? How many costumes are in each animation set? How many sets are there? (idle, walking, running, jumping, falling, punching, etc)
There are several ways to animate but will help if we can see how to implement it with your other scripts and with your costume sets.
There are several ways to animate but will help if we can see how to implement it with your other scripts and with your costume sets.
- TromboneAndSaxophone
-
91 posts
Walking + Animation?
Here's a platforming tutorial that includes animating sprites: https://scratch.mit.edu/projects/67727504/
This won't work. It will always change the costume once space is pressed.
if this dosent work, please let me know!
- BossGamer2004
-
8 posts
Walking + Animation?
https://scratch.mit.edu/projects/67727504/Here's a platforming tutorial that includes animating sprites:This won't work. It will always change the costume once space is pressed.
if this dosent work, please let me know!
Thank you so much, the tutorial worked for me! Thanks to everyone for the effort! Have a great day.
- codeman1044
-
1000+ posts
Walking + Animation?
Please don't blockspam or necropost. This topic is over a year old.
- megamonk
-
29 posts
Walking + Animation?
here is how you would do that.
make a script for walking, for example:
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 this
if this dosent work, please let me know!
thannk u
- deck26
-
1000+ posts
Walking + Animation?
No need to necropost to thank someone for an old post.here is how you would do that.
make a script for walking, for example:
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 this
if this dosent work, please let me know!
thannk u
- nerdboy0
-
2 posts
Walking + Animation?
The animation is not working the animation keeps on going.
- nerdboy0
-
2 posts
Walking + Animation?
Please help!
Last edited by nerdboy0 (Dec. 7, 2019 00:06:36)
- Teddy_Bear3
-
42 posts
Walking + Animation?
If you were talking about this:this isn't workkiinnnng
Then it's because instead of: here is how you would do that.
make a script for walking, for example:
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 this
if this doesn't work, please let me know!
you need to do:
- Teenager_in_love
-
1 post
Walking + Animation?
Is there a way I do not have to use the “next costume” block? Like, if I wanted to add a walk cycle to both the -10 and 10 steps?
- mstone326
-
1000+ posts
Walking + Animation?
Yes, but always best to start a new topic. This one is originally from 2018.
You can use a variable to control the speed of the animation. Here is a quick example. https://scratch.mit.edu/projects/383305591/
You can use a variable to control the speed of the animation. Here is a quick example. https://scratch.mit.edu/projects/383305591/
- Silver_star_2008
-
5 posts
Walking + Animation?
Okay, if this is still in use, I have a question: When my walking animation is on for a game,and then I jump, the walking animation continues,and my jump animation doesn't show, why is this, also you can check it out.. I posted it, and it is called prototype, cuz I haven't finished it, but basically, my dog will walk, but when I walk and jump, it will jump, but the jump animations won't show. You should just look at it to under stand. Press the right arrow key and then up arrow key, and you'll see that the dog jumps, but the animations will not come up. If you jump without pressing the right arrow key, it processes and the jump animations happen, but it just stays in place. Oh and a FYI, the game is a scroller platformer game. Is that a reason it doesn't work? Someone help!!!
- Discussion Forums
- » Help with Scripts
-
» Walking + Animation?