Howdy, Stranger!

It looks like you're new here. Sign in or register to get started.

If you have any questions, reports, suggestions, or requests about Live2D, please send them to this forum.
※We cannot guarantee statements or answers from Live2D staff. Thank you for your understanding in advance.
 
Live2D Cubism
Cubism Products and Downloads
Cubism product manuals and tutorials
Cubism Editor Manual    Cubism Editor Tutorial    Cubism SDK Manual    Cubism SDK Tutorial
[INFORMATION](03/28/2024)
Cubism Editor 5.1 alpha version is now available!
Find out how to use the new features here.
Please take this opportunity to use it and give us your feedback!

For more information and download, please check out the Cubism Editor 5.1 alpha category.

Question: Can I get part of model and operate it as a progress bar

I'm using live2d with cocos2d-x.

Can I get part of model with a partID then operate it myself?

Say the role first has a blank progress bar. Then as player acts, the progress bar moves accordingly.
I want the progress bar part of the model, so it can acts together with the role, such as when role jumping.



Comments

  • Sorry, but I don't quite get what you mean with "operate it myself". Could you explain once more what you mean by that? Sorry for the inconvenience...
  • Thanks for your kindly reply.
    What I mean by "operate it myself", is that I can progress the bar step by step as user acts.
    See on role's chest, there's a progress bar, when user acts, the progress bar moves from 0 to another number and finally full.
  • edited July 2016
    I believe you can! I understand the issue abstractly, but I don't know any cocos2d code. I have ideas though.

    Do you have a code for making eye blinking (randomized triggering of a certain set of motions) or breathing (sine-function variation of a parameter over time)?

    If so, you can find the part of code which allows you to control parameters directly within those functions. That part of code is the key. Make the progress bar a parameter, and then control it via that code you've found - violá!

    I hope it helped!
Sign In or Register to comment.