#tileset error

2 messages · Page 1 of 1 (latest)

signal stratus
#

how do i fix: @ _physics_process(): condition "!tile_set.is_valid" is true. returning:vector 2i() GDscript

#

my code:```extends TileMap
@export var lt : Vector2 = Vector2.ZERO

Called when the node enters the scene tree for the first time.

func _physics_process(_delta):
if(Input.is_action_just_pressed("LMB")):
var t : Vector2 = local_to_map(get_global_mouse_position())
print(t)
lt = map_to_local(t)
print(lt)