Looping animation isn't looping

Hi! I have my character doing the punch loop animation, I then pause for 2 while he loops and then a window breaks.

For some reason he only punches once then stands still for the rest of the pause, is there a way I can get him to actually loop the animation during that pause?

I’ve tried it as

&ELIJAH is punch_fight_give_angry_loop
@pause for 2
and
@ELIJAH is punch_fight_give_angry_loop
@pause for 2

but he just wont loop the animation, any help?

He seems to be punching while the pauses are there during my preview.

Try this
&ELIJAH is punch_fight_give_angry loop
@pause for 2
&ELIJAH is punch_fight_give_angry loop
@pause for 2

When I first preview it, he loops but then when I rewatch it he doesnt. I tried it on the app too reading through the whole episode and he wasn’t punching on loop there either.

I’ll try yours now and let you know!

1 Like

That’s weird. I’m using the web previewer and he’s still punching from the loop. Maybe that will work. Let me know :slight_smile:

He paused again the first time and then looped the second punch, I have no idea why it wont work.

I’ve changed it to
&ELIJAH is breathe_deep
@pause for 1
&ELIJAH is punch_fight_give_angry_loop
@pause for 3

He skips the breathing entirely but at least he’s looping the second punch :sweat_smile:

Thanks for trying, I really don’t understand why it just wont loop that first one.

Try the animation deepbreath instead of breathe_deep

The animation should work with the looping.

&ELIJAH is deepbreath
@pause for 2
&ELIJAH is punch_fight_give_angry_loop
@pause for 2

Punches are exactly one second long, each.

And there’s no need to re-type looping animations… you just need to pause for the correct amount of time.

Therefore if you want Elijah to punch three times, the code would be: :point_down:t3:


&ELIJAH is punch_fight_give_angry_loop
@pause for 3
&ELIJAH is idle_armscrossed_angry_loop [<< This animation is just used as an example. But you can just enter whatever animation you want him to do, after the punching.]


:point_up_2:t3: Of course, you can add however many punches you want him to do… so if you want him to punch 4 times… you need to pause it for 4 seconds, and so on.

:point_up_2:t3: Also… the reason he skips the breathing, is because that animation is 2.5 seconds long, and you only paused for 1 second.

1 Like

How are you timing them :sob:

Haha, I’m just used to it by now. We basically learn through trail and error. :blush:

When I was new to coding… I used to just guess the pauses, sometimes I made a lucky guess and got them right… other times they were wrong and I’d have to add or subtract 0.5 or 1 second.

1 Like

I would do it something like this considering the punching is quite a slow animation:

@ELIJAH is punch_fight_give_angry_loop AND pause for 0.8 THEN ELIJAH starts punch_fight_give_angry_loop

Keep in mind I haven’t actually tested this so the timing could be off. :person_shrugging:t4:

@Rubae_Epi
Bare in mind that if it still fails, despite the coding being correct… then the error must be caused by the animation prior to it.

For example: If Elijah walks over to the person he punches, before actually punching him [rather than already being in position] then it’s possible that you haven’t paused for long enough.
In the past my characters had a tendency to idle, if I did the code like this: :point_down:t3:

&CHARACTER walks to spot 1.000 123 123 in zone 2 in 2 AND CHARACTER does it while walk_neutral
@pause for 2
&CHARACTER is punch_fight_give_angry_loop
@pause for 3

Because for some reason, it likes the pause to be longer than necessary… so I used to add the extra @pause for 0.01 [I have no idea why it does that, it must just be an Episode issue. :flushed:]

But… there’s never a problem, when I code it like this: :point_down:t3:

&CHARACTER walks to spot 1.000 123 123 in zone 2 in 2 AND CHARACTER does it while walk_neutral THEN CHARACTER is punch_fight_give_angry_loop
@pause for 5

:point_up_2:t3:
The pause for 5, covers both the walking… and the three punches.

1 Like

Pretty sure this is right! The walking is causing him to idle, thank you for the tips!

1 Like

Aww… you’re welcome! I’m always happy to help! :blush:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.