MAJOR CHALLENGE (formula)
Simple Gamer Arts
Member, PRO Posts: 305
Ok, so I have my flying HERO actor in a platform game. I'm NOT using "CONTROL CAMERA" behavior; so in other words I constrained the camera size to a moving actor to have access to a zoom effect and all that nice stuff and it works beautifully. Thing is, I want to create a zoom out effect in accordance to the distance my HERO actor is flying out of the margins.
my smallest camera size or default camera size is:
CAMERA SIZE X: 2100
CAMERA SIZE Y: 1181.6
biggest camera size:
CAMERA SIZE X: 6000
CAMERA SIZE Y: 3376
How can I formulate (zoom-out) the camera's X and Y size in perfect proportion in accordance to my HERO's Y position?
Comments
Not sure exactly but you can use the magnitude() function to determine distance between two points (actors).
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
Thanks @tatiang