Hi
I am making a quite simple game of spaceships (like Asteroids if you want).
I have a ship wich rotates and moves, but rotates from the top left corner, and not from center of the picture.
Player ship is sprite #3.
if ( dbLeftKey ( ) )
ship_angle = ship_angle - 2 ;
if ( dbRightKey ( ) )
ship_angle = ship_angle + 2;
if ( dbUpKey ( ) )
dbMoveSprite ( 3, 2 );
if ( dbDownKey ( ) )
dbMoveSprite ( 3, -2 );
dbRotateSprite (3, ship_angle ) ;
dbSync ( );
How can I change the center point of rotation to the center of the ship?