I’m creating a basic game using Python Arcade and Tiled Map Editor. My problem is, I can’t use the Object Layer in arcade in their built-in Physics Engine. I can see, after creating an instance of the tiled map
the layers are separated into Tile Layers
and Object Layers
, but arcade.PhysicsEngineSimple()
doesn’t use the object layers. This means I can’t have collisions into walls or set a starting position for my player and enemies.
I asked a similar question before: Unable to use Object Layer from a Tiled Map with Python Arcade, which involved creating a Tile Layer
called “Walls” and using "use_spatial_hash": True
, but after using the solution, I realised that this still only uses the Tile Layer
and doesn’t work for what I want. The collisions work, but it will be set to the size of the tile (In my case 64X64) but if I want a collision boundry that is thin and long then it won’t work.
If anyone has any experience with handling Object Layers
in Python Arcade, your help will be greatly appreciated.
It is very basic code at the moment as I’m just learning arcade.
My code can be found here: Basic Dungeon Game