I'm using the darkGDK in c++ and is trying to get the background to move.
moveX = moveX + (dbRightKey() - dbLeftKey());
moveY = moveY + (dbDownKey() - dbUpKey());
while(drawWorldY < 9){
while(drawWorldX < 12){
dbSprite(spriteID+1, ((drawWorldX * 100) [b]+ moveX[/b]), ((drawWorldY * 100) + [b]moveY[/b]), terrain[spriteID]);
spriteID = spriteID + 1;
drawWorldX = drawWorldX + 1;
}
drawWorldY = drawWorldY + 1;
drawWorldX = 0;
}
The dbSprite won't use the new values of moveX to change the position of the sprites.
If I change the initial value they will though.
I might be doing it all wrong, so any help is appreciated.