Hello,
You can use get position and assign it to float , then make the subtraction using float sub action
Then using float multiple ,
As for the camera you can use set property and set minsize , maxsize , and relativeHeight individually.
I hope this helps.