First, make both cables exactly the same length. This ensures the change is linear. Duplicate cable A and cable B and position them as needed.

Next, establish the total length of each cable. That is, the total length of the cable on the left side (with the counterweight) and the total length of the cable on the right side (with the elevator) are added up. This is your actual cable length.

Then, apply this formula to find the maximum scale factor to use:

total_cable_length / cable_unscaled_height = max_scale_factor

If the total length of the cable was 1000 quants and the unscaled height (scaling of 1) was 100 quants, the maximum scale factor you'd use is 10. If the cable's unscaled height was just 1, you'd have 100 times the precision and 1000 for the maximum scale factor.

Finally, set the scaling for one of the cables as from the time. The other cable's scaling is set as follows using yet another very simple formula:

max_scale_factor - first_cable_scale_factor = second_cable_scale_factor



That's all there is to it. It's relatively simple, but does require some skillful thinking.


"You level up the fastest and easiest if you do things at your own level and no higher or lower" - useful tip My 2D game - release on Jun 13th; My tutorials