Finally had a chance to check this out - super cool! I'm not well-versed in Live2D yet, so this is great to see. One suggestion I have from playing around a bit - you can get a nice open-close loop with the formula math.sin(st * LIP_FLAP_SPEED_FACTOR)*0.5+0.5 in the get_mouth_open_value function (assuming you import math first). Then it's a smooth transition back to closed after the mouth is open. Will be keeping an eye on this method for future Live2D projects!
Viewing post in Ren'Py Live2D Lip Flap Code jam comments
Hi Feniks, super late reply to your itch comment, but I want to thank you again for your feedback on using a sine function! 💖
The following is a small guide for those who want to try out your suggestion. I played with the constants a bit and I think LIP_FLAP_SPEED_FACTOR should be set somewhere between 10.0 and 15.0. This image highlights which code parts to change.
