I'm trying to make a simple 2D game and up to this point it's been going alright. My problem is that I want to have a map that is longer then 640 (my viewport) but I would rather have the whole viewport change position with my main character, rather than move the bitmap at the back and all the other sprites on it. I was wondering if there is any good way to do this? I've tried a camera but it does not work.
if (WLIT == 1 && dbSpriteX(50)-320 > 0)
{
dbPositionCamera(1000,dbSpriteX(50)-320,0,0);
}
if (WLIT == 1 && dbSpriteX(50)-320 <= 0)
{
dbPositionCamera(1000,0,0,0);
}