Jump to content

I need help with wide body


Recommended Posts

Hey what's up.
I'm trying to make a character that is wider than the standard character. but i have some problems with it.
To begin with, the torso is so wide that it covers the arms, in addition to putting on any armor/clothing, for obvious reasons they are only seen above the body.
I have tried using the command "inst.Transform:SetScale(1.2, 1.2, 1.2)" inside the prefab files to make him smaller so that the torso can fit with the rest of the body, but it also alters the size of the items that the character uses such as helmets and tools that makes them bigger.
I also tried to modify the size and position of the arm sprites so that they are more visible, but not only has this not worked, but the hand tools/weapons are floating since it is defaulted to only one position. The question is what can I do? is there a solution?

image.png.b170d0c289c3b9e544ca6df4ecc40e9d.png

image.png.0bdecc92470f4d573e2c160ac5e079d3.png


Is there a command similar to "inst.Transform:SetScale(1.2, 1.2, 1.2)" that only affects the body and not the items, so that only the character could be scaled and the body clothes fit.
or modify the pivots of the animations to adjust the arms and the hand items (with this option it may not fix the wearing clothes, but I could create custom items to solve it)

I am expecting your answers, thanks!

Link to comment
Share on other sites

FYI, inst.Transform:SetScale also affects physical size, meaning they will have a bigger hitbox and faster walking speed.

You can use inst.AnimState:SetScale instead, that will only change the visual size. It is only applied on client, though if you have it in the prefab file it run on every client anyway.

There is also another command only for player prefabs, inst:ApplyAnimScale(), this command also changes visual size, but instead of overwriting the previous size values, will multiply with each source. This is used with Wolfgang when he changes form. I recommend using it over plain inst.AnimState:SetScale.
Its arguments are (source, scale), so for example

inst:ApplyAnimScale("any_string", 1.2)

That will make a character 1.2 size, and you can change it again as long as the source stays the same.

Also,

Quote

I have tried using the command "inst.Transform:SetScale(1.2, 1.2, 1.2)" inside the prefab files to make him smaller so that the torso can fit with the rest of the body

1 means normal size. More is bigger, less is smaller. 1.2 is bigger, and 0.8 is smaller. So you are actually making the character bigger.

 

Sorry, I'm not very good at working with sprites. I checked out AnimState functions, but I don't think there is a command to change clothing size, or a specific body part's size. I hope someone more experienced could help you with that.

  • Like 1
Link to comment
Share on other sites

Quote

FYI, inst.Transform:SetScale also affects physical size, meaning they will have a bigger hitbox and faster walking speed.

You can use inst.AnimState:SetScale instead, that will only change the visual size. It is only applied on client, though if you have it in the prefab file it run on every client anyway.

There is also another command only for player prefabs, inst:ApplyAnimScale(), this command also changes visual size, but instead of overwriting the previous size values, will multiply with each source. This is used with Wolfgang when he changes form. I recommend using it over plain inst.AnimState:SetScale.
Its arguments are (source, scale), so for example

Thanks, but using any of the 2 commands gives me the same result, where the items increase along with the character.

I need only the character to change size and the items to remain normal size

 

image.png.8e67b7079e1e53c2ad8e6f5057dbd470.png

image.png.935f32a9b261250c0663f01f89f77eff.png

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
  • Create New...