Game Development Community

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 :

img406.imageshack.us/img406/4166/cameraproblem.jpg

#1
05/27/2009 (8:33 pm)
In the PlayerDragonActorComponent.cs in the method _mountCamera()

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);