May-26-2019, 04:32 PM
Hi all,
Very new, learning python for fun.
I've been mostly following this a youtube tutorial by KidsCanCode on youtube for making a tile based game.
Long story short, I have a player centered camera and a scrolling background (just coloured sprite Rects now). It all looks and works like it should except when scrolling down it seems that the map thinks it is 3 squares too tall; as if my "map.txt" has three extra lines to it.
"1"s = a wall tile, "."s = blank tile, on a 32x32 pixel grid. Right, left, top, the camera works fine, but going down there are 3 rows of blank tiles displayed on the outside of my walls, which are the lowest line in the .txt file.
I used "strip" like in the tutorial to remove the spaces at the end of each line, but it did nothing for the extra "phantom" lines.
Changing display window size changes nothing.
Does this sound familiar to someone?
Many thanks,
m.
Very new, learning python for fun.
I've been mostly following this a youtube tutorial by KidsCanCode on youtube for making a tile based game.
Long story short, I have a player centered camera and a scrolling background (just coloured sprite Rects now). It all looks and works like it should except when scrolling down it seems that the map thinks it is 3 squares too tall; as if my "map.txt" has three extra lines to it.
"1"s = a wall tile, "."s = blank tile, on a 32x32 pixel grid. Right, left, top, the camera works fine, but going down there are 3 rows of blank tiles displayed on the outside of my walls, which are the lowest line in the .txt file.
I used "strip" like in the tutorial to remove the spaces at the end of each line, but it did nothing for the extra "phantom" lines.
Changing display window size changes nothing.
Does this sound familiar to someone?
Many thanks,
m.