The Godot Q&A is currently undergoing maintenance!

Your ability to ask and answer questions is temporarily disabled. You can browse existing threads in read-only mode.

We are working on bringing this community platform back to its full functionality, stay tuned for updates. | Twitter

0 votes

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

Godot version v4-alpha14
in Engine by (12 points)

1 Answer

0 votes

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

by (286 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.