Okay... I'm very new to DarkBasic, i have used other langagues before... but not this... alright, so i'm working on my first project in this langauge, as i stumple on a problem, i was trying to use the box command, like this:
UIX#=UIX#+13.5;
UIY#=UIY#+10.4;
if (UIX#>0) then UIX#=0;
if (UIY#>0) then UIY#=0;
sprite 6,UIX#,UIY#,6
sprite 7+Achievement1,UIX#+32,UIY#+32,1;
show sprite 7+Achievement1;
hide sprite 8-Achievement1;
rem Check if there's a mouse over, on any achievement, if so, list the details
if (mousex()>=UIX#+32 && mousex()<=UIX#+64 && mousey()>=UIY#+32 && mousey()<=UIY#+64)
box mousex(), mousey(), mousex()+100, mousey()+250, rgb(0,0,0), rgb(0,0,0), rgb(0,0,0), rgb(0,0,0)
endif
Now... it draws the box.. the only problem is, it's drawn beneath the sprites... so now i'm trying to find a way, to tell Darkbasic, to change the "Layers" and draw it above the sprite, but i can't find any :S