How do I play a jump animation?

Get help using Construct 2

Post » Tue Nov 25, 2014 8:49 am

I'm making a platform game but the jump animation isn't playing when the player jumps and the fall animation isn't playing on the way down either.

Maybe I'm just tired and cranky but this is driving me nuts.

If someone could take a look at it for me I would be extremely grateful.

I've attatched my .capx.
You do not have the required permissions to view the files attached to this post.
Last edited by arrjayjee on Tue Nov 25, 2014 9:09 am, edited 1 time in total.
B
5
Posts: 36
Reputation: 397

Post » Tue Nov 25, 2014 9:06 am

Your .Capx didn't post because your rep isn't high enough. Did you try attaching the actual .capx?
B
13
S
2
G
1
Posts: 47
Reputation: 1,211

Post » Tue Nov 25, 2014 9:09 am

I didn't know about the plain text URL limit. I've attached the .capx to the original comment.
B
5
Posts: 36
Reputation: 397

Post » Tue Nov 25, 2014 10:29 am

Platform speed=0 set "Idle"
Platform speed≠0 set"Walk"
Platform jumping set "Jump"
Platform falling set "Fall"

try this....
B
67
S
24
G
7
Posts: 1,518
Reputation: 11,072

Post » Wed Nov 26, 2014 10:58 am

I've just implemented that suggestion korbaach but the jumping animation is still freezing on the first frame and not playing through and the falling animation isn't running at all.
B
5
Posts: 36
Reputation: 397

Post » Wed Nov 26, 2014 11:19 am

OK, sorry to double post but I've been playing around with the conditions some more. The problem is with the animation itself and I don't know why. Even if I set the event condition to "PlayerHitBox is not on the floor" the jump animation still gets stuck on the first frame and does not progress.

Can anybody help me figure out where I went wrong here?

The jump animation plays fine in the platform tutorial I created a week or so ago.
B
5
Posts: 36
Reputation: 397

Post » Wed Nov 26, 2014 11:35 am

I changed a few things and according to the debug I added everything seems to be working as you want.

You Suck At This no you dont.capx
You do not have the required permissions to view the files attached to this post.
B
46
S
23
G
7
Posts: 459
Reputation: 6,763

Post » Wed Nov 26, 2014 11:49 am

Thank you! I can see what the problem here was. Thank you so much.

Also, thank you for the kind encouragement with the renamed .capx :P
B
5
Posts: 36
Reputation: 397


Return to How do I....?

Who is online

Users browsing this forum: Semoreh and 7 guests