How do I get the average X & Y Coordinates between 4 players

Get help using Construct 2

Post » Mon Jan 25, 2016 9:59 am

Hello, once again I have a question about the camera within the game I'm making. Based on the previous question where I got to use a lerp on my camera and based on that lerp the camera zooms out. (layoutsize).

I had no problems controlling the camera between two players lerp(Camera.X,Player1.X+Player2.X/2,0.3).
But with four players this does not work, does anyone have an idea to center the camera at four players?
B
3
Posts: 9
Reputation: 193

Post » Mon Jan 25, 2016 10:05 am

I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Mon Jan 25, 2016 10:12 am

I've been trying to fix the camera for a while now and this deffinitely helped, thanks a lot.
B
3
Posts: 9
Reputation: 193


Return to How do I....?

Who is online

Users browsing this forum: blackhornet, RetroSpock and 14 guests