• Editor
  • Character and its resizing

Hello. I would like to ask experienced users for advice on how you would implement a change in the size of a character, or more precisely, its thickness (weight).

In my game, I would like the character to be able to lose weight and gain weight. Accordingly, so that his body, arms, legs could change their sizes and so that I could control this in the game itself, changing some parameters

From what comes to my mind, this is an additional invisible bone in the game, which I would move from left to right, like using AIM, where the character follows the sight. But I don’t know yet whether this can be configured to change the sizes of parts of the character

Therefore, maybe someone can share an opinion for the implementation of this mechanic, if this is even possible in Spine

Related Discussions
...

To implement a mechanic where a character can gain or lose weight, you can use several techniques in Spine. One approach is to adjust the bone transforms at runtime, which allows you to change the scale of specific bones to make parts of the character appear thicker or thinner. This can be done by accessing the bones in your game code and modifying their scale properties. Another method is to use skin constraints, which can help you manage different body proportions by applying different skins or constraints to the character. This approach is useful if you have predefined sizes or want to smoothly interpolate between different body shapes. Additionally, you can use a combination of both methods to achieve more complex transformations.

For more detailed guidance, you can refer to the following resources:

These resources provide insights into how you can manipulate bones and use constraints to achieve the desired effect in your game.