and sorry for the double post, but here is the other question:
How do you rotate gani's? i can do rotation on images, but i cant seem to find out how to rotate gani's. here is the car script that needs to rotate a gani:
PHP Code:
//#CLIENTSIDE
function onPlayerChats()
{
if ( player.chat == ":car" )
{
this.car = 1 - this.car;
if ( this.car )
{
client.frozen = true;
setTimer( 0.05 );
}
else
{
player.attr[6] = "";
client.frozen = false;
setTimer( 0 );
}
}
}
function onTimeOut()
{
client.frozen = true; player.x = getMoveX( this.accel );
player.y = getMoveY( this.accel );
if ( keydown( 1 ) )
{
this.carAngle += .2;
}
if ( keydown( 3 ) )
{
this.carAngle -= .2;
}
temp.dx = getMoveX( 1 );
temp.dy = getMoveY( 1 );
player.dir = getdir( temp.dx - player.x, temp.dy - player.y );
if ( keydown( 0 ) )
{
this.accel = this.accel + .1 > 1 ? 1 : this.accel + .1;
}
else
{
this.accel = this.accel - .1 < 0 ? this.accel = 0 : this.accel - .1;
}
player.x = getMoveX( this.accel );
player.y = getMoveY( this.accel );
client.car_angle = this.carAngle;
player.attr[5] = this.carAngle;
setAni( "sit", "" );
player.attr[6] = "ut_car.gani";
setTimer( 0.05 );
}
function getMoveX( speed )
{
return player.x - sin( this.carAngle ) * speed;
}
function getMoveY( speed )
{
return player.y - cos( this.carAngle ) * speed;
}