Quote: "Thank you for replying, this world could certainly need more helpful people like you."
That made me feel good - thanx!
Quote: "However I'm more or less completely new at DGDK/DB(P)"
Welcome.
Quote: "Also, when on the subjet of sprite-layers etc. I assume that sprites being on different levels won't have any impact on dbSpriteCollision?"
I don't know - but I don't see how it would.
Quote: "It's still not quite clear to me if the sprites with higher priority number as you say, gets drawn further back on the Z axis, or just appears to be behind."
This would be further back in the
Z-Order !!NOT!! the Z-Axis. (At least thats the Theory
)
Quote: "would love an example... how to capture an image of the text, make it into a sprite, and how to set priority numbers"
#include <DarkGDK.h>
void DarkGDK ( void ){
dbSyncOn();
// MAKE A SPRITE FROM TEXT
dbCLS();
dbText(0,0,"Hi Mom");
// For documentation
int ImgID = 1;
int X1=0;
int Y1=0;
int X2=120;
int Y2=20;
bool NOTForTEXTURING = true;
dbGetImage(ImgID,X1, Y1, X2, Y2, NOTForTEXTURING);
dbSprite(1, 80,80,ImgID);
// Make an Image in Ram just to make another sprite without media
dbMakeMemblock(1,16);
dbWriteMemblockDword(1,0,1);
dbWriteMemblockDword(1,4,1);
dbWriteMemblockDword(1,8,32);
dbWriteMemblockDword(1,12,dbRGB(255,0,0));
dbMakeImageFromMemblock(2,1);
dbDeleteMemblock(1);
dbSprite(2,100,100,2);
dbScaleSprite(2,18000);
while ( LoopGDK ( ) ){
dbSetCursor(0,0);
dbPrint("Press 1 and 2 to toggle Sprite Priority");
if(dbKeyState(2)){//pressing 1
dbSetSpritePriority(1,100);
dbSetSpritePriority(2,0);
};
if(dbKeyState(3)){//pressing 2
dbSetSpritePriority(2,100);
dbSetSpritePriority(1,0);
};
dbSync();
};
};
How's That?