Problem: Animation is not playing completely

Get help using Construct 2

Post » Fri Feb 19, 2016 8:16 pm

Hi guys!

So I want the sprite of my enemy to start and play a certain animation and to stop movement if my player sprite is near him! He stops his movement and actually stops at the first frame of the animation I want him to play.

That horned guy is enemy.. He is standing still as intended and stops at the first frame of the animation
Image


Here is alle the code for that one enemy. I highlightet the part with the error
Image

Does someone know whats wrong here?
B
4
Posts: 12
Reputation: 224

Post » Fri Feb 19, 2016 9:24 pm

Add a "trigger once" system condition to the two events. Currently the event repeats every frame so every frame the animation restarts back to the first frame
B
84
S
22
G
15
Posts: 1,039
Reputation: 15,249

Post » Fri Feb 19, 2016 9:32 pm

I tried that! It plays only the first frame, too.. then he immediately starts walking again T_T

edit: I think i got it fixed! i had to put the animation out of the action left and action right conditions

edit edit:

Now he doesn't stop and keeps walking, but is doing the animation.. I'm confused
Image
B
4
Posts: 12
Reputation: 224

Post » Fri Feb 19, 2016 11:41 pm

Isn't the "X is mirrored" an "Is mirrored" swapped?
B
84
S
22
G
15
Posts: 1,039
Reputation: 15,249

Post » Fri Feb 19, 2016 11:44 pm

nope :/ the animations is triggered on the right point, but that guy just isn't standing still :o

edit: you are the copy girl guy? amazing!!
B
4
Posts: 12
Reputation: 224

Post » Fri Feb 19, 2016 11:55 pm

I was reading the 2 statements and fill the same way if is not mirrored / set not mirrored are conflicting statements should not be needed.

also where x-22 and x+22 should be set to image points as to whether the player is over right or left.
because you have conflicting is greater X-22 and is less then x
B
29
S
13
G
10
Posts: 355
Reputation: 8,337

Post » Fri Feb 19, 2016 11:59 pm

oh... so what should i put there instead of those x-values?
B
4
Posts: 12
Reputation: 224


Return to How do I....?

Who is online

Users browsing this forum: brunopalermo and 7 guests