Hello, im currently working on a mini-street fighter game. Nothing advanced, just the ability to select from different characters, move em around and have em hit something till it "dies". Im doing it piece by piece and ive gotten up to the animation stage. I got a nice looking idle and walking setup but my problem lies in switching back and forth.
So when the user is not pressing the right or left key, the sprite reverts to a idle animation. I can somewhat get this to work but it's not nice to look at. The sprite will play through the animation and it looks all jerky like it's spazzing out. Ive included a screenshot and just wondering if anyone has some tips on making this a smoother experience.
As I said above, as long as the right or left key isn't pressed, it'll go into the idle animation. If it is suddenly stopped or started, it shouldn't be all messed up. Sorry if it's confusing but I hope you get what im aiming for.
Offline
Try this script:
Does that help?
Last edited by greenflash (2010-02-15 21:06:41)
Offline
try using the animation scripts from this project in your project http://scratch.mit.edu/projects/archmage/291819
Offline
In that Pikachu one it looks like it's just one file name for the whole walking animation. So if the button is pressed it goes through em all... hmm.
Thanks so far to the both of you.
EDIT: Wait, I see the next costume. Hmm, gonna meddle around, hehe.
Last edited by dmonaco1983 (2010-02-15 23:14:42)
Offline
Don't worry about the files names, I was just too lazy to change them. The walking animation only goes though the walking sprites so I am not sure what you are talking about on that point.
Offline
Got everything working now, thanks guys!!
Just one question, how do you make walking look smooth? Right now it's just:
[blocks]
<change x by( 25
[/blocks]
But it looks a bit jerky. :x
Last edited by dmonaco1983 (2010-02-16 21:36:23)
Offline