Issues with tilemap referencing

v4.0.2

I just started with Godot, so I may have a wrong understanding, but I can’t figure out how to solve this issue in referencing the tilmap:


I couldn’t figure out any syntax error…

I appreciate any help! Thanks.

in godot 4 “onready” has been changed to “@onready”.

@onready var tilemap = $TileMap

This is also the case for @export

1 Like