I'm making a running game and want the camera to follow the person in the lead. I've got two players and they only run on the X-axis.
Instead of following the nearest, Just compare the x of both character every tick, and set the position of the camera to whatever character has the biggest X value
Unless they're running from the right to the left, on which case the camera should follow the one with the least X value
Develop games in your browser. Powerful, performant & highly capable.
This might help you.
WASD- Left guy
Arrow Keys- Right guy
https://mega.co.nz/#!7xV3UBID!WUV7rUU6y ... IeEaKosWFA - File hosting
I do have WASD and Arrow keys set, but thanks for your help, both.
It's no problem, also I was just telling you the controls for the .capx i sent you. Glad I could help