I am working with an animated sprite, and I have it working but it is actually showing behind my other assets. I need to move it forward, but I can't figure out how (or if I need to) set priority on the animated sprite. Here is an example of what I am talking about:
#include "DarkGDK.h"
void DarkGDK ( void )
{
dbSyncOn ( );
dbSyncRate ( 60 );
Sprite LoadingScreen(41, 81, "Load_Landscape.jpg");
LoadingScreen.stretch(110, 120);
LoadingScreen.setPriority(0);
LoadingScreen.display(0, 0);
dbSync();
dbCreateAnimatedSprite(1, "Fun_Rotation.png", 9, 1, 1 );
dbSprite ( 1, 200, 200, 1 );
while ( LoopGDK ( ) )
{
dbPlaySprite ( 1, 1, 9, 200 );
dbSync ( );
}
return;
}
You can see from the code why the animated sprite is running behind the background, any advise on how to bring this to the front? Thanks in advance!