ecctrl icon indicating copy to clipboard operation
ecctrl copied to clipboard

Idle animation not looping

Open NicolasBrondin opened this issue 1 year ago • 5 comments

When setting my idle animation, I was expecting it to loop like the walk, but instead it gets played only once, after the character stays static.

Thank you for your amazing job 🙏

NicolasBrondin avatar May 27 '24 14:05 NicolasBrondin

Thanks @NicolasBrondin ! Did you set up the animation name correctly? 截屏2024-05-27 17 19 16

ErdongChen-Andrew avatar May 28 '24 00:05 ErdongChen-Andrew

Yes absolutely ! Otherwise it would not trigger at all I guess! Right now it's played once when the player loads (or when you stop walking), then it stops (but it does not come back to the T shape, it stays in the same position than the last frame of the idle animation)

NicolasBrondin avatar May 29 '24 20:05 NicolasBrondin

Did you use the animation multiple times? For example, did you put "idle" in "fall"? I can't help much without seeing any code. Maybe you can check the example app setups here: https://github.com/pmndrs/ecctrl/blob/main/example/Experience.tsx.

ErdongChen-Andrew avatar May 30 '24 23:05 ErdongChen-Andrew

@ErdongChen-Andrew Yes I did! I will try with different animations to see if it fixes the issue 🙏

NicolasBrondin avatar May 31 '24 07:05 NicolasBrondin

making sure no animation action is reused is a must, it fixed a similar issue in my case, thanks @ErdongChen-Andrew

MULUALEM-TEKLE avatar Sep 25 '24 18:09 MULUALEM-TEKLE