Invalid call. Nonexistence function 'get_cellv' in base TileMap

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Lupheastus

Just to start this off, I have only just started using Godot.

I created a small program in Godot v3.5 to create a procedurally generated world (2d). I tried porting the code to Godot v4.0-alpha14 due to the better Tile Set editor and got the error above.

My node structure is Node2d → TileMap. My script is connected to Node2d and use this code to get the TileMap node: @onready var FLOOR = $TileMap This worked fine. However I can not use any TileMap specific functions. As you can see, when I try and use FLOOR.get_cellv(pos) I get that error.

Its just odd that this worked perfectly in godot 3, but not 4

:bust_in_silhouette: Reply From: Ev1lbl0w

The TileMap is undergoing big reworks on 4.0. When using Godot 4.0, always check the latest branch of the documentation (