I have written a code
#include "DarkGDK.h"
void DarkGDK ( void )
{
dbSyncOn ( );
dbSyncRate ( 60 );
dbCreateAnimatedSprite ( 1, "animatedsprite.png", 4, 4, 1 );
dbSprite ( 1, 0, 0, 1 );
while ( LoopGDK ( ) )
{
dbPlaySprite(1,1,16,100);
dbSync ( );
}
return;
}
i'm having a confusion with dbPlaySprite(); can plz sumone help me i hav some questions
1. Why dbPlaySprite(); has to be in GDK Loop ?
2. dbSync(); needs to be call 2 times then in loop there is only one time ? Why Sprite is running ?
3. In what order the statements will be executed ? i mean that when dbSync(); will be called first time inside the loop of GDK then the dbPlaySprite(); is executed before it then why Sprite Animation doesn't appear One Frame ahead because dbSync(); is called after first execution of dbPlaySprite(); ?
plz help here little confused with the flow of execution of dbSync(); and dbPlaySprite(); here