Eyo, so what would be a good way to write a spring that can be stretched or compressed and then return to its original state at a speed proportional to distortion? Would that work better as a single object or two with math between them?
Can you add more details as to what the spring is for?
Maybe try the physics distance joint or maybe a different joint.
https://wiki.gdevelop.io/gdevelop5/behaviors/physics2/#distance-joint
I wonder would just tweening it not be best solution
I think you should try that 1st