[About macOS Ventura 13.0] (12/20/2022)
The currently released Live2D Cubism SDK is not guaranteed to work with macOS Ventura.
Please refrain from upgrading the macOS as they may not work properly.
The Cubism Editor license file may be lost after the macOS upgrade.
Please make sure to deactivate the Cubism Editor license before upgrading the macOS.
For more details
About the support for Mac models
Cubism Editor is not supported with Apple M1 processors.
Please refer to System Requirements
We will not respond to any related inquiries with this message.
how to make custom rubbing touch event
What is the easiest way to implement a rubbing touch event similar to that in games such as Nintendogs?
what is including in the sample in SDK only have flick,tap,shake event.
To achieve something similar to the rubbing (loving stroke) in Nintendogs, the flickevent doesent seem to be relevent enough.
Should I add the logic in TouchesMoved or TouchesBegan? And How should I do it properly?
Another question would be, how do I loop an animation?(for instance,when I am rubbing one's head,the head down animation loops).
Thank you very much,
Any help is much appreciated.
sorry i post this in the wrong category...
I have an idea for the rubbing. I want to code it in to my game too as a small extra feature in a bonus mode, and this is how I will go for it. Maybe it helps you too, or you have ideas on how to improve it!
The Live2D model has a hitbox, which I'll refer to as L2D_Hitbox. We want to have our cursor always on it, so that we're rubbing the actual character.
Then, when we click (MouseDown) and hold down the mouse to "rub", we want to displace the mouse from its original position. We can do this by making a circular hitbox centered at the initial mouse position, and waiting for the user to displace the mouse (while still holding down) off of this circular hitbox.
Like that, one rub is complete. If the mouse is still held down, you can make a new circle and continue the cycle (you might want to block off one half too, perpendicular to the initial rub and completed rub position, so that they have to rub to the opposite side)
All of this, while that the mouse is on L2D_Hitbox remains true.
I hope it helped!
Thanks for the great answer! My I ask how you're preparing the 'L2D_Hitbox'? Are you modeling it in the Cubism Modeler?
Yeps, I'm modelling in the Cubism Modeller.