Hay again!
As im new to DarkGDK i found some tutorials on YouTube, but i get a bug when i use "if(dbRight/Left/Up/DownKey() == 1);"
So when i do a do the if statement and the "db"Key"Key() == 1" It thinks im using the Up/Down/Left/Right key and NO, it does not happen anywhere else :/
#include "DarkGDK.h"
void DarkGDK(void)
{
dbSyncOn();
dbSyncRate(60);
dbDisableEscapeKey();
dbSetImageColorKey(255, 0, 255);
dbLoadImage("player.bmp", 1);
dbSprite(1, 100, 100, 1);
while(LoopGDK())
{
if(dbRightKey() == 1);
{
dbRotateSprite(1, 90);
dbMoveSprite(1, 1);
dbRotateSprite(1, 0);
}
if(dbEscapeKey() == 1)
{
break;
}
dbSync();
//
}
dbDeleteImage(1);
dbDeleteSprite(1);
return;
}
What can be wrong?
-SliZe