[Notice of Holidays]
Please note that our staff will not be available from 2024/Dec/28 - 2025/Jan/5 JST.
The Live2D Creators Forum will remain open during the holidays.
Submissions that require a response will be answered after we reopen for business.
Please note that it will take longer than usual to respond to your request.
How do I loop a motion while touch swiping?
I'm in process of understanding the framework right now. I've examined the SampleApp1 code and I can see that if I swipe on the head, it will only play the motion once. Same goes for the body.
How do I make a motion keep looping when I swipe on the head? When I swipe on the head or the body, it will loop same motion over and over until I released my touch and it will slowly fade to idle state.
It's kind of something like this (skip to 3:21)
https://youtu.be/w5gQhcxTmuI?t=3m21sWhile that it seems it only loops the face expression but I wonder if I can apply motion for the whole parts too.
Thank you
0 ·
Comments
Try to modify the code as follows .
The modified point was put comments (Add Code) .
SampleApp1/Assets/Scripts/sample
[LAppModelProxy.cs]
set the swiping .mtn
[LAppModel.cs]
[MyGameController.cs]
The result will be this way .
Now I've noticed, it does loop the motion, but at the end of motion, it will jump back to first frame. Can I make the loop returning to specific frame instead of first frame?
I'd like to make my model keep in blushing state with eyes shut until I released my touch.
Or should I used Expressions for this? I'm thinking like... when the motion ends, I switched to display the expression mimicking last frame of the motion.
However , I don't know how to loop returning to specific frame .
It is you're right .
If your model keep in blushing state with eyes shut,
I think that it is good to use Expressions motion also together .
There is a simple Expressions use source in the past of thread .
Please be here in reference .
How do I change the model's expressions in Unity during gameplay?