Friday, January 10, 2025
spot_img

Godot TileMap Changed with TileMapLayers – GameFromScratch.com


Within the transfer from Godot 3.x to Godot 4.x one of many few regressions was help for 2D tiled maps. For the reason that 4.0 launch nevertheless, a number of options are being reintroduced to convey Godot as much as parity with the older variations. Within the upcoming launch of Godot 4.3 (at the moment in Beta1) there are some main adjustments to the TileMap class. The truth is, the category itself is deprecated and has been changed with the brand new TileMapLayer class.

Particulars from the Godot 4.3 Beta 1 launch weblog:

TileMap layers as nodes

TileMap layers are actually uncovered as particular person TileMapLayer nodes (GH-89179), which suggests much less litter within the inspector, an easier API, and can also be extra according to frequent Godot design patterns.

To keep away from the small drawbacks that will include that change, we added new editor options, for instance the power to pick all layers within the at the moment edited scene. The TileMap node itself is marked as deprecated however will keep for some time (it won’t get any new options although).

To assist with the transition, you’ll be able to robotically rework a TileMap node to a set of TileMapLayer nodes by way of a dropdown menu entry within the editor. You’ll should replace your scripts, however don’t fear, the API may be very comparable.

Key Hyperlinks

Dev snapshot: Godot 4.3 beta 1

Humble Bundle Belongings from Demo

You may be taught extra concerning the deprecation of TimeMap and use the brand new TileMapLayer substitute within the video under.

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisement -spot_img

Latest Articles