Platformer animations not right...

Get help using Construct 2

Post » Fri Feb 01, 2013 6:03 pm

Hi everyone!
Im new to C2 but Im learning thru tutorials from the site and on youtube.
I've followed some instructions on creating a platformer and it is going pretty well. Just for practice Im creating the first level of Bonks Adventure from scratch. Learning to load in sprites and setting up events has been very intuitive so far.
The problem I am having currently is with his animations. If you just move left and right he does his walk animation flawless. The problem comes when jumping and especially jumping after being up against a wall.
I followed the tutorial the best I could and it seems right but the animation just seems to freeze up and return to the standing animation and it looks like Bonk is just gliding across the floor.
Im sure its something simple, but I can seem to get it right. Here is the link to the .capx file:
https://dl.dropbox.com/u/1618936/bonk.capx

If anyone could have a quick look at this and tell me what I may have done wrong and how to avoid this in the future, I'd really appreciate it.
Thanks!!
B
4
S
1
Posts: 3
Reputation: 581

Post » Fri Feb 01, 2013 6:35 pm

@GodModeX - event 8 try replacing it with player - platform - is moving, inverted (platform is not moving). if you add a jump animation in later add another condition to that event as well "is not jumping".
B
14
S
6
G
2
Posts: 136
Reputation: 3,210

Post » Fri Feb 01, 2013 7:51 pm

Thanks for the response WretchedShark.
I tried that and still I get the problem.
The way to reproduce the problem Im getting, is to walk up to a wall and continue to press the key in the direction your going and press the up button to jump. You will then see bonk still moves but his walking animation stops and hes stuck in a standing animation.
Im sure its fixable, just not sure of the event to use to fix it.
B
4
S
1
Posts: 3
Reputation: 581

Post » Fri Feb 01, 2013 9:02 pm

oh i see, i just thought it was where his walking animation would stick after jumping near a wall, my bad!

- event 9 you have "set animation to "running" " - there is no "running" animation, change to "walking"

also change 9 and add another event as follows:
https://www.dropbox.com/s/i0k10g1nozst33x/bonk.png

if you need more help or i've, again, missed something just tag me with @wretchedshark in your post wretchedshark2013-02-01 21:03:43
B
14
S
6
G
2
Posts: 136
Reputation: 3,210

Post » Fri Feb 01, 2013 9:10 pm

@WretchedShark

Hey, that worked great! Thank you so much!
Not sure how I missed that "running" animation part. Doh!
Thanks again!
B
4
S
1
Posts: 3
Reputation: 581


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 23 guests