We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0424d46 commit 4578784Copy full SHA for 4578784
addons/MetroidvaniaSystem/Scripts/RoomInstance.gd
@@ -76,7 +76,15 @@ func _update_neighbor_previews():
76
for i in 4:
77
var fwd: Vector2i = MetroidvaniaSystem.MapData.FWD[i]
78
79
+ var show_neightbor: bool
80
if cell_data.borders[i] > 0:
81
+ show_neightbor = true
82
+ elif cell_data.borders[i] == 0:
83
+ var neicell := MetSys.map_data.get_cell_at(coords + Vector3i(fwd.x, fwd.y, 0))
84
+ if neicell:
85
+ show_neightbor = neicell.borders[(i + 2) % 4] > 0
86
+
87
+ if show_neightbor:
88
var next_coords := coords + Vector3i(fwd.x, fwd.y, 0)
89
var scene: String = MetSys.map_data.get_assigned_scene_at(next_coords)
90
0 commit comments