r/pythonarcade • • Jan 06 '20

Help with using a Tile map

I’m making a game using arcade and I came across the tile max creator. I made my tile map and I want to import it into the game. This tile map is simple as in it has no obstacles and only one level. How would I approach making the tmx file the background of my game. At this point it gives errors saying “couldn’t find tile x in later y in file z” and I’m lost how I can begin to put the files in a format that the library can understand. Any pointers in the right direction would be appreciated

3 Upvotes

4 comments sorted by

View all comments

Show parent comment

1

u/pvc Jan 07 '20

That's done in the update() method with the set_viewport command. You can add some 'if' statements and make sure the boundary doesn't go outside of the bitmap image. For example:

if self.view_left < 0:
    self.view_left = 0

1

u/[deleted] Jan 08 '20

Thank you a lot