ANIMATION FOR MY PLAYER
by Diego Castaneda · in Torque 3D Professional · 08/28/2009 (2:30 am) · 0 replies
hey everybody, i'm creating a canon, and i want it to be my player, i made the animations, one for the canon to move up and down, and another for the canon to move from left to right.
i put the path of the animations on the player.cs and the canon.cs like this:
on player.cs
on the datablock TSShapeConstrunctor(PlayerDts)
{
sequence0 = "art/shapes..../sequence_abajo.dsq look";
//because i want this to play when the muzzle move up and down
sequence1 = "art/shapes..../sequence_derechaizquierda.dsq head";
//because i want this to be played when the muzzle move from right to left
}
i did the same on the canon.cs
on the singleton TSShapeConstrunctor(canonDts)
{
sequence0 = "art/shapes..../sequence_abajo.dsq look";
//because i want this to play when the muzzle move up and down
sequence1 = "art/shapes..../sequence_derechaizquierda.dsq head";
//because i want this to be played when the muzzle move from right to left
}
and i don't know if i have to edit another file, because when the camera looks up and down the muzzle moves from right to left and when the camera moves from right to left i doesn't do anything but looks like the canon rotate, i really don't understand what is happening and i was wondering if i have to edit another file or if there is a tutorial that can guide me in this.
thanks
i put the path of the animations on the player.cs and the canon.cs like this:
on player.cs
on the datablock TSShapeConstrunctor(PlayerDts)
{
sequence0 = "art/shapes..../sequence_abajo.dsq look";
//because i want this to play when the muzzle move up and down
sequence1 = "art/shapes..../sequence_derechaizquierda.dsq head";
//because i want this to be played when the muzzle move from right to left
}
i did the same on the canon.cs
on the singleton TSShapeConstrunctor(canonDts)
{
sequence0 = "art/shapes..../sequence_abajo.dsq look";
//because i want this to play when the muzzle move up and down
sequence1 = "art/shapes..../sequence_derechaizquierda.dsq head";
//because i want this to be played when the muzzle move from right to left
}
and i don't know if i have to edit another file, because when the camera looks up and down the muzzle moves from right to left and when the camera moves from right to left i doesn't do anything but looks like the canon rotate, i really don't understand what is happening and i was wondering if i have to edit another file or if there is a tutorial that can guide me in this.
thanks
About the author