So I've been stuck on something which I feel is a very basic problem for more than a couple of hours.
I'm working on a 2D RPG game on a custom game framework, and I nailed the player movement which is pretty much grid based. Now when it came to map scrolling, I had the basic setup which is having the player camera = playerpos - screenatrributes/2, and then offsetting the entire map by the player camera value. But now I'm facing the problem of the map moving twice as much, so my player basically moves 2 units in every direction, because it moves once when I press a key, and the second time when the player camera gets updated.
What am I doing wrong with the player camera?
I'm definitely having some sort of oversight here, any help is appreciated.