My Subject says it all. Is ther a better way to move sprites other than like using code like this???
#include "DarkGDK.h"
// the main entry point for the application is this function
void DarkGDK ( void )
{
dbSyncOn ( );
dbSyncRate ( 60 );
dbLoadImage ( "ship.png", 1 ); // Loading Media
dbSprite ( 1, ShipX, ShipY, 1 ); // Pasting Ship onto screen
// our main loop
while ( LoopGDK ( ) )
{
// Controls
//___________________________________________________________________________
if ( dbRightKey ())
ShipX += 5;
if ( dbLeftKey ())
ShipX -= 5;
//___________________________________________________________________________
dbSprite ( 1, ShipX, ShipY, 1 );
dbSync ( );
}
// return back to windows
return;
}