Ok so I included the code for my project below, I\'m just doing some experimenting with pygame on making a platformer. I\'m trying to figure out how to do some very simple s
The only way to do that is to separate logical positions in the map, from physical positions on the screen .
Any code related to actually drawing your map on the screen - in your case all the .rect attributes of your sprites - have to do so based on an offset of what part of yor map the screen is actually using.
For example, your screen might be showing your map starting with position (10,10) on the top left - all display related code them (which in the case above are the .rectattributes) should subtract the screen offset from the current logical position - (say the character is at map coords(12,15) - so, it should be drawn at (12,15) - (10, 10) -> (2, 5) * BLOCK_SIZE)
In your example above BLOCK_SIZE is hardcoded to 32,32, so you want to draw it at physical pixel position (2 * 32, 5 * 32) on the display)
(hint: avoid hardcoding things this way, make it a constant declaration at the beginning of your code)