Sprite Animations problem

Get help using Construct 2

Post » Mon Apr 15, 2013 12:41 am

I'm currently working on a platformer. And the problem is as follows:

So I'm making my character have a standing, walking, jumping, falling, and looking up animation. Everything seems to work fine at first but when I make the character turn suddenly to the left when walking right, his animation changes to the standing one instead of the running one and glides across the floor unless you stop pressing down on the button. This also happens when holding the up button making the character look up. If you keep the button pressed he stays in the looking up animation even when walking so he looks like if he was gliding across the floor while looking up. Any idea as to why this is happening?
B
3
Posts: 5
Reputation: 285

Post » Mon Apr 15, 2013 12:43 am

Yes, you're missing something inside your code. But discover it without a look is practically impossible.
ImageImageImageImageImageImage
B
93
S
19
G
12
Posts: 1,209
Reputation: 18,357

Post » Mon Apr 15, 2013 12:45 am

Ok well I'm new to the forums so what should I do to be of better use?
B
3
Posts: 5
Reputation: 285

Post » Mon Apr 15, 2013 12:47 am

One thing nice when asking for help, and you're not sure where you're doing wrong, is share the CAPX file.

Use www.dropbox.com for it, it's free.TELLES08082013-04-15 00:47:39
ImageImageImageImageImageImage
B
93
S
19
G
12
Posts: 1,209
Reputation: 18,357

Post » Mon Apr 15, 2013 12:53 am

Ok thank you very much. Here is the capx file.

https://dl.dropboxusercontent.com/u/48929818/PreAlpha.capxAthanas012013-04-15 03:34:12
B
3
Posts: 5
Reputation: 285

Post » Mon Apr 15, 2013 2:32 am

Nevermind problem fixed. Thanks to those who tried to help me.

Problem was that I had certain even that when a key was released it set the standing animation. Problem with that was that it was not necessary and messed it up.
B
3
Posts: 5
Reputation: 285

Post » Mon Apr 15, 2013 8:44 am

If you follow the platform tutorial you will also find that using the movement of left and right with platform and using the mirror action for your animation, you can get your player to moonwalk if you hold right and tap left while still holding right. Works the other way as well. I still haven't taken time to get this issue resolved, but I may tackle it soon if nobody else has run into it...
B
49
S
11
G
10
Posts: 1,833
Reputation: 14,418

Post » Mon Apr 15, 2013 12:24 pm

@BluePhaze - I've had that problem as well. Didn't bother trying to fix it (too many other things to work on) but yeah, I'd be interested in a solution if you happen across one :) I'm sure it's just a matter of tracking certain state changes better...
B
9
S
3
G
4
Posts: 63
Reputation: 3,083

Post » Wed Apr 17, 2013 3:57 am

@BluePhaze
So far I had no trouble with moonwalking. What platform tutorial did you follow? I used the one written by Velojet for help. Athanas012013-04-17 03:58:32
B
3
Posts: 5
Reputation: 285


Return to How do I....?

Who is online

Users browsing this forum: zatyka and 20 guests