problems with animations

Post your own tutorials, guides and demos.

Post » Sat Aug 07, 2010 11:34 am

[quote:3byjhqya]Hello everyone,
I'm having a few issues with animations

Whenever I have an animation that is supposed to play once, it gets stuck on the last frame instead of simply ending. I unchecked the loop checkbox and the animation is set not to repeat. So far I've fixed this with additional events but it's causing problems and cluttering up the event layout.

The second and biggest problem I'm having is that animations are finishing prematurely. I'm using the platform movement behavior and it seems to happen when my character is accelerating in speed (it doesn't happen while the character is standing still or moving at full speed).

I tried lowering the speed of the animation to see what is happening and it looks like it's skipping frames, only playing the 2, 3 last frames (make that 1, 2 last frames).

[/quote:3byjhqya]

Use S to jump and D to attack. The attack animation is where the problem is, but i've been having these issue with other projects as well.
B
5
S
1
G
3
Posts: 24
Reputation: 1,123

Post » Sat Aug 07, 2010 12:27 pm

What version of construct are you using?

It is working perfectly fine for me, after slowing the animation down to 1, i counted all 4 frames being played in the attack animation.
B
7
S
2
G
4
Posts: 164
Reputation: 2,418

Post » Sat Aug 07, 2010 2:03 pm

i'm using version 0.99.91.

The problem doesn't happen when the character is stopped or moving at full speed, only sometimes when accelerating. try pressing the attack key at random intervals while walking around and it should happen.

I'm pretty much a computer dyslectic, but could this be an issue with my video card or something similar?
B
5
S
1
G
3
Posts: 24
Reputation: 1,123

Post » Sat Aug 07, 2010 6:06 pm

From what I can tell, it seems to be "skipping" frames because the attack animation isn't properly resetting to the first frame. If I add a condition to do so, it works like it should even when accelerating.
Hard to tell if it's not resetting to the first frame properly because of a conflict or because there is actually a bug there.

EDIT: Added fix. Does it work for you? Needs version 99.92
B
2
S
2
G
4
Posts: 156
Reputation: 1,762

Post » Sat Aug 07, 2010 6:55 pm

It works! Thanks so much! :D
B
5
S
1
G
3
Posts: 24
Reputation: 1,123


Return to Your tutorials & example files

Who is online

Users browsing this forum: No registered users and 0 guests