1

Following this code from this tutorial I'm getting this error

DeprecationWarning: The read_tmx function has been replaced by the new TileMap class.

The code I'm using is

game_map = arcade.tilemap.read_tmx(str(map_path))

I'm not sure if this code is outdated now or what but I can't seem to find a way to get my tilemap to load properly.

Dagger
  • 23
  • 3

1 Answers1

2

This tutorial was built on outdated Arcade version:

This tutorial uses Python 3.9 and arcade 2.5.5 throughout.

Currently latest Arcade version is 2.6.1. So I see several options here:

  • downgrade your Arcade version to 2.5.5 (not recommended though)
  • update tutorial code to the latest Arcade version
  • use official Arcade examples (best choice imo)
Alderven
  • 7,569
  • 5
  • 26
  • 38