The preload
s are strange, I’m not sure what you intend to do with those. preload
only loads a resource, when used on it’s own line (not assigned to a variable) it’s pretty much useless. Do you need to get a reference to the TileMapLayer from the RayCast or vice-versa? I believe we went over doing this from RayCast to TileMapLayer via get_collider()
?
I don’t see a reason to go the other way from TileMapLayer to RayCast, but you could use @export
or show your scene tree so I can help devise a path with $
.
Might be helpful to go over a tutorial on the scene tree, maybe go through the “Dodge the Creeps” tutorial and pay close attention to anything with the get_node symbol $