extensions icon indicating copy to clipboard operation
extensions copied to clipboard

Looks+: Recoloring a costume resets its rotation center

Open AmberEP opened this issue 10 months ago • 7 comments

When changing an svg color, it resets its x and y offset and changes its rotation point. I could manually fix the x and y offset but i can't solve the rotation point problem.

I need it because i suppose there is way to make a sprite change color AND brightness. For my character, to make its skin customizable, i created (for each body segment) 1 layer for the outline (back layer) that is black, 1 for the skin (red by default then the color can change depending on the skin tone, and brightness effect can change) and 1 other for the skin brightness (black).

skin and its outline, with the 3 layers (1og and 2 clones. It may slow the game a lot when i'll add the 7 others athletes (21 sprites for each, and 42 clones (even more clones if not naked...))) Image

for example, the arm new position when i use the extension to change its color is this : Image

AmberEP avatar Feb 24 '25 03:02 AmberEP

for the record, this isnt exactly a issue with Looks+ its more of a issue with how rotation centers are applied with Scratch skins. The way its coded, Looks+ and Skins causes Scratch Skins to default to a rotation center of 0,0. Its not easy to implement either because of certain things...

However, there is a PR in this repository and some others to work towards fixing it. In the mean time, you could add a invisible box to your costume to keep the rotation center, or alternatively, use other extensions to manually set the rotation center

SharkPool-SP avatar Feb 24 '25 06:02 SharkPool-SP

I believe this would be fixed by https://github.com/TurboWarp/extensions/pull/1517

We can unblock it even though the centering for bitmaps isn't ready yet

GarboMuffin avatar Feb 24 '25 06:02 GarboMuffin

I believe this would be fixed by #1517

We can unblock it even though the centering for bitmaps isn't ready yet

dont you need to edit Looks+ and Skins too?

SharkPool-SP avatar Feb 24 '25 06:02 SharkPool-SP

I didn't even think of the invisible box. Interesting. I'll first check how the extensions works then if it's too hard, I'll add the invisible box. Thanks !

AmberEP avatar Feb 24 '25 06:02 AmberEP

Leave it open, it's not fixed yet

dont you need to edit Looks+ and Skins too?

yes i forgot that pull request only touched Assets

GarboMuffin avatar Feb 24 '25 06:02 GarboMuffin

oh sorry i don't really know how it works there.

AmberEP avatar Feb 24 '25 06:02 AmberEP

I didn't even think of the invisible box. Interesting. I'll first check how the extensions works then if it's too hard, I'll add the invisible box. Thanks !

yeah just so you know, no extensions on the Turbowarp gallery has a manual set rotation center block. Mainly external extensions like Renderer Control and Turbo Skins (in my gallery)

SharkPool-SP avatar Feb 24 '25 06:02 SharkPool-SP