What I described is the old hat method of collision detection. Using Dark Basics sprites would be much easier as everything on the screen being drawn can be checked using the built in commands.
My method would need this:
create a bitmap using the same size as the screen
draw all objects to it that would be collidable
In your main loop:
before moveing player then check the copy bitmap if the player would collide
Then just draw your screen as usual
draw background
draw level objects
draw baddies
draw player
Using sprites methods would just simply need something like: (I've not used 2d yet)
if sprite_collision(sprite1, sprite2) {
do something
}
and that's it.
There are some examples that come with DBP and GDK that use the sprite commands and collision. Reading through them should give you a good start. Hope you get somewhere with it soon.
Warning! May contain Nuts!