I am into breast adjustable mods for the moment, and I wondered how to make bras breast adaptable, because the Chest grows with the Breasts, but there is nothing in konashion's templates for this.
I've looked into it. The code is unfinished. There are
layers dedicated to this role (such as
g.her.torso.shoulderStrap and
g.her.torso.braStrap) but they don't do anything on their own.
@Konashion's bras rely on hardcoded scripting which can't easily be accessed by imports.
Therefore we need to use the Loader.
In order to create an adaptive
torso strap, you can use standard keyframes and tweens (as you've already shown). You employ some simple AS3 scripting to force your strap to jump to the appropriate frame# (i.e. size) whenever the breast slider is adjusted.
You could also accomplish this with vanilla scripting and omit the Loader, but the code is a bit more messy.
In order to create an adaptive
shoulder strap, it's possible to copy-paste some of
@Konashion's code into your mod. I don't consider this worthwhile, because the code has significant limitations:
- the strap is purely "linear". It's a single rigid shape which can't twist or bounce; it always forms a straight line between its anchor point and the edge of the bra cup.
- @Konashion compensated for this limitation by using relatively short straps. If you imagine a microbikini (with a tiny bra cup and much longer straps) then you can probably imagine how the garment might seem "stiff" or "unreal".
- the anchor point is hardcoded to a specific position on the collarbone. You can't play around with different strap designs (which might place the strap nearerer to the neck or shoulder)
- there's only one strap (on the "right" or "foreground" side of the girl's body). If you want to create a noticeably asymmetric bikini (or something with X-shaped crisscrossing straps) then the side view ought to expose the left-hand strap ... but the vanilla code won't allow you to draw or animate a second strap.
- the layering is hardcoded. The strap is always drawn underneath the bra cup. This isn't a huge problem; you can draw the intersection zone to mask any visual weirdness. But there are a few cases wherein you might want stitching or patterns on the strap to overlie the bra cup.
---------------
If you're willing to rely on the Loader, then I can walk you through my recommended approach. It involves drawing several small segments and then using the physics system to define anchor points for them. These anchor points might lie on the girl's body (e.g. collarbone, torso, neck) but they can also be placed on the bra cups. During gameplay, the physics system will stretch the segments to cover the gap between the anchor points -- creating the visual effect of an elastic strap.
The most prominent example is
@Huitznahua's
bikini mods. Studying his FLA file would probably be a
bad idea, because that project was very ambitious and it experienced scope-creep during development. The end result is that the FLA source file is quite complex and difficult to understand. I'd advise you to test out one of the bikini mods in-game. If you like the effect that
@Huitznahua was able to achieve, then I can find a more suitable FLA file for you to use as a template.
You can employ the physics-based technique for
multiple elements (e.g. torso strap, shoulder strap, dangling strings, etc). Or you can retain a more traditional keyframe-animated approach while using physics only where
necessary (e.g. shoulder strap). The traditional technique is certainly more appropriate for a "thick" band across the torso; you wouldn't
want such a thing to bounce and wiggle around :)
The one major visual disadvantage of this technique is that it relies on overlap between adjacent sprites. Therefore
users cannot create a see-through bra via Alpha adjustment, because the partially-transparent overlap zones usually look awful.
If you design your bra very carefully then you can mitigate this problem, but it's usually not worth the effort. Even @Konashion's bra looks bad when its alpha value is reduced! Normal RGB sliders do not suffer from this problem; color adjustment works OK.
---------------
If you'd prefer to create vanilla mods then I can't really help you with the shoulder strap. I
can assist you with the scripting of the torso stuff, if you're having trouble getting it to work in-game.
Does any modder bother making breast adjustable bras in fact?
A few people have created "bra" mods using the TOPS or BRA category. These mods
will respond to the breast slider, but there's no easy way to fit the shoulder strap. Therefore the wisest approach is to simply choose a design which lacks any such straps.
@Iago's
Strapless Bikini Bra could probably have used this approach: default breast-slider-timeline behavior for the bra cups, keyframed animation for the torso band (with Loader scripting to show the appropriate size). But Iago is a very prolific modder, so he chose to spend his time drawing more costumes (instead of lingering on a single design in order to tinker with its fitting and animation).
A few people have also created traditional shirts and then published them under the BRA category for layering reasons, thus creating an "undershirt". Such designs need not include any strap-related animation; they're basically just static garments (with optional breast slider support for the bra cups).