Do you have any pretty formula to smoothly calculate the scale of an object depending of its Y position?
For instance i want a sprite to change its scale based on the max Y (y=480 then scale=1) and the min Y (y=340 then scale=0.8)
This formula will trigger every tick.
Many thanks