Help me ! (camera problem)
by Alexandre Fredenucci · in Torque X Platformer Kit · 04/21/2009 (2:14 pm) · 1 replies
Hi all !
I have a little problem of camera with the platform kit for xna, i have replace the player example by my player sprite (who's little more tall) I can not refocus the camera in my player, i try with Camera tool in torque x builder but it doesn't work :/ what line of code i must change in xna ? (sorry for my bad english ! i hope it's understandable ^^;)
my problem :

I have a little problem of camera with the platform kit for xna, i have replace the player example by my player sprite (who's little more tall) I can not refocus the camera in my player, i try with Camera tool in torque x builder but it doesn't work :/ what line of code i must change in xna ? (sorry for my bad english ! i hope it's understandable ^^;)
my problem :

About the author
Torque Owner Chris Canepa
change these lines:
camera.Position = _actor.Position + new Vector2(0, 6.2f);
camera.Mount(_actor, String.Empty, new Vector2(0, -6.2f), 0.0f, true);