QUOTE(ZOMBIE!!! @ 2 Nov, 2009 - 02:25 PM)

A couple of new questions:
1. How do you scroll through a map in a 2d game? Like a side scroller.
2. Ive seen people who make 2d maps for games by using characters on the keyboard that the game exchanges for sprites. How do you do that?
thanks for the help,
ZOMBIE!!!
I use a system where the object moves depending on what button is pressed. I dont have my project files with me so i'll try to give an example by memory.
CODE
void userinput ()
{
char* szKey = dbInKey ( );
if ( strcmp(dbInKey(), "v") == 0 && vtimer < dbTimer() )
{
//1 is the person
//2 is where it needs to go
dbPointObject(1,dbObjectPositionX(2),dbObjectPositionY(2)); // my memory is a little iffy on this line, it may not point it correctly
dbMoveObject(1,1f);
}
This should, when V is pressed, point your sprite 1 towards it's destination 2 and move it there.