Currently I have code that should move a sprite and for some sprites the dbMoveSprite code works but for some reason when I try the below code it doesn't any way I can find out why?
FireNumber is the sprite id I am trying to move which I have updating by a dbTimer() function to create rapid fire.
void moveBullet( void )
{
if (dbSpriteExist(FireNumber) != (TrackFire) && bulletYPosition > 1 )// This works Don't change it
{
//Something is wrong here-----------------------------------------------------------
dbMoveSprite ( FireNumber , 8 );
//Something is wrong here---------------------------------------------------------------
}
}
Attached is the full code I got no idea what's wrong as the code should work and has no errors