Quote: "- How can i make the bullets go to mouse direction (i will not insert ammo limit)"
well the point is, you will make the sprite move forward always using dbMoveSprite, so all you need is an angle to set the sprite to so it can go on (dbRotateSprite), so how can we get this angle? first off, get the mouse position,
int mx = dbMouseX ( );
int my = dbMouseY ( );
after that, point the sprite to the mouse position
//point sprite to oos
float ANGLE;
int DX = mx - dbSpriteX( BULLETSPRITEID );
int DY = my - dbSpriteY( BULLETSPRITEID );
int DIST = (DX * DX) + (DY * DY);
if( DIST > 0 )
{
ANGLE = dbAtanFull ( mx - dbSpriteX ( BULLETSPRITEID ), dbSpriteY( BULLETSPRITEID ) - my );
dbRotateSprite( BULLETSPRITEID , ANGLE );
}
and after that, just move the sprite as usual...(in loop, dbMoveSprite)