how do i blit images underneath the entity layer?
As far as I know, this can't be done (except with sprites, maybe? I really haven't touched those much).
However, you can hack it.
After blitting whatever it is you want below the entities, run a loop that goes through all entities on the map (or on the screen, if you want to optimize a bit) and blit entity.frame[entity_id_here] on top of that.
So:
Blit(x,y,whatever,screen);
for(i=0; i<entities; i++)
BlitEntityFrame(entity.x[i]-xwin, entity.y[i]-ywin, i, entity.frame[i], screen);
ShowPage();
... or something to that effect.
the blitting command is: blit(x,y,imagename,destimage);
i usually notice destimage is 'screen'
are there any other variables that can replace this?
It's simply an image. The destination image could be one you loaded with LoadImage, created with NewImage, or the 'screen'. 'screen' really is just an image that represents what will be sent to the monitor on the next refresh.
The reason you would want to blit to the screen usually, is that most commonly you just want whatever you're doing to show up right away.
But say you were creating an image dynamically, which you were to use several times, it would be much more efficient to create a new image (using NewImage), draw onto that, and then blit that new image onto screen whenever you wanted to use it.
Let me know if my rambling confused more than it helped, and I'll think of a better way to explain.
EDIT: Whoops, minor artifact from my reused code went in there, making very little sense.