I need help for this Player animation "bug"

Get help using Construct 2

Post » Fri Mar 01, 2013 10:23 pm

So I've recently started a new project (Pixel graphics jungle plat former)but I have already encountered a small but annoying thing with the walk/jump animations. When I press Up while moving Left or Right, the player jumps as normal.

However, if I hold the Left or Right key throughout the jump and after landing, my Walking animation does not start at all and my character slides around until I release the key and press it again. (This also happens re-press-and-hold Left or Right while in the air and keep it pressed on the ground)

This may seem like a small issue but is very annoying for me as I indent it to be a challenging, nonstop, running game.


I hope to get a solution soon!

(Here is the file so you can see what I mean): http://www.mediafire.com/?i88qu3d3bm688iqgamingwithpi2013-03-01 22:55:13
B
6
Posts: 8
Reputation: 517

Post » Fri Mar 01, 2013 10:31 pm

It depends on how you are requesting each animation in your events. I'm guessing you must have something like:

Left key down - play THIS animation
Right key down - play THIS animation
Up key down - play JUNP animation.

I would probably separate any animation from keyboard inputs and have the animation determined by actual conditions for the sprite in the game.
B
14
S
4
G
3
Posts: 38
Reputation: 3,741

Post » Fri Mar 01, 2013 10:54 pm

Well... this is actually how it is. I set it to default platform movoement in behaviors. I have animation trigger such as "On moved: Set animation" and for facing different directions I have "Left pressed: Mirror Player"

I suggest you take a look at the capx file (Mediafire link) to see the actual issue and to see my coding ;)
B
6
Posts: 8
Reputation: 517

Post » Fri Mar 01, 2013 11:03 pm



This fixes it for me. Sorry can't post a cap right now.
B
13
S
6
G
6
Posts: 144
Reputation: 3,106

Post » Fri Mar 01, 2013 11:10 pm

Hey! Thanks buddy40! (I kind of forgot about the invert function XD) Thanks for fixing this for me and now I can use this trick for future use :)Thanks a bunch
B
6
Posts: 8
Reputation: 517


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 0 guests