How to make camera follow character?
by Jason Walters · in Torque X Platformer Kit · 11/30/2008 (3:27 pm) · 4 replies
I've created the first level in my game and would like to know how do I set the camera to follow the player while he moves through the level?
#2
I will look for the Airplane tutorial but, if anyone can provide more detailed instructions that would be great. Without the ability to move the camera I'm stuck.
12/01/2008 (8:03 am)
I've built a few test levels in the PSK and none so far have mounted the camera... when I move my character, he just moves off the screen.I will look for the Airplane tutorial but, if anyone can provide more detailed instructions that would be great. Without the ability to move the camera I'm stuck.
#3
You can either study or copy the code in the BeginRun method where the parallax manager's target object is set to the camera or you can take this project as a template or a starting point and replace the dragon etc. with your own player and objects.
12/01/2008 (10:44 am)
Create a new project and select Platformer Demo.You can either study or copy the code in the BeginRun method where the parallax manager's target object is set to the camera or you can take this project as a template or a starting point and replace the dragon etc. with your own player and objects.
#4
12/01/2008 (11:14 am)
I will try this tonight, thanks for your help!
Torque Owner Zilla
But you can also study the Airplane tutorial (5. Mounting a camera to our plane).