My "jump" and 'fall" animation only play first frame

Get help using Construct 2

Post » Wed Dec 21, 2016 6:57 pm

I'm using the "platform" behavior and when I tell the event to play jump and fall animation, it only plays the first frame.

I have tried both "while jumping" and "on jump" conditions, and still only plays the first frame.

I'm using an instance variable to move the character left or right "every tick".

What am I missing?

Thank you.
B
6
S
1
G
2
Posts: 9
Reputation: 893

Post » Wed Dec 21, 2016 6:58 pm

Loop?
B
38
S
18
G
19
Posts: 664
Reputation: 14,107

Post » Wed Dec 21, 2016 7:04 pm

I tried to "trigger once" and the animation didn't play at all.
B
6
S
1
G
2
Posts: 9
Reputation: 893

Post » Wed Dec 21, 2016 7:17 pm

Something else that you aren't thinking about is likely overriding your animation. For example, your walking animation may be triggering to play before the jump finishes. A capx would help to see the issue. If that's the case then you could fix it by adding another condition to your animations (Something like play walking animation if jumping animation isn't playing). Eventually you'll want to set up animation states to take care of these kind of things. There are a few good tutorials on setting them up.
B
60
S
20
G
56
Posts: 1,077
Reputation: 35,941

Post » Wed Dec 21, 2016 7:36 pm

Only thing that may come to mind without seeing the capx is...check your animation properties. Something may be off with that.
B
38
S
18
G
19
Posts: 664
Reputation: 14,107

Post » Wed Dec 21, 2016 9:14 pm

Check this tutorial and watch his event sheet, this is the easy way of animating your player, don't use variables if you don't have complex animations.
https://www.youtube.com/watch?v=LahFEuBXvY8
B
35
S
9
G
9
Posts: 207
Reputation: 6,805

Post » Wed Dec 21, 2016 10:09 pm

Okay I found the issues. Just had to tell it to stop playing the run every tick

Thanks guys
B
6
S
1
G
2
Posts: 9
Reputation: 893


Return to How do I....?

Who is online

Users browsing this forum: Google [Bot], troxx, TwistedSaviour and 1 guest