Skip to content

Commit dca6cb4

Browse files
manuqwjt
authored andcommitted
Void runner: Become the forest a collider
By changing the node type to StaticBody2D. Just like the StartingIslandTrees nodes. Also adjust the polygon shape by smoothing the corners, so the player collides nicely with it. The polygon should potentially continue be used for refilling the area with trees. But making its shape smoother and preventing hard edges as it fades into the water was more important here, than keeping a good shape for refilling. And adding 2 polygons (one for colliding, one for filling) would be a bit confusing. #1753
1 parent 95c5af8 commit dca6cb4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

scenes/quests/lore_quests/quest_002/1_void_runner/void_runner.tscn

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,7 @@ position = Vector2(2316.72, 1194.34)
412412
scale = Vector2(1.12722, 1.12667)
413413
sprite_frames = ExtResource("13_b5w51")
414414

415-
[node name="Forest" type="Area2D" parent="OnTheGround"]
415+
[node name="Forest" type="StaticBody2D" parent="OnTheGround"]
416416
y_sort_enabled = true
417417

418418
[node name="AreaFiller" type="Node" parent="OnTheGround/Forest"]
@@ -423,7 +423,7 @@ metadata/_custom_type_script = "uid://bdhjixygupit1"
423423

424424
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="OnTheGround/Forest"]
425425
position = Vector2(16, 0)
426-
polygon = PackedVector2Array(877, 1261, 229, 1261, 240, 1169, 473, 1222, 778, 1215, 1022, 1218, 1988, 1244, 1952, 1630, 2074, 1661, 2097, 1817, 1796, 1791, 1795, 1724, 1669, 1723, 1669, 1660, 1282, 1661, 1281, 1722, 1149, 1731, 1148, 1787, 1085, 1789, 1081, 1851, 964, 1851, 863, 1856, 874, 1586, 1019, 1589, 999.701, 1367.19, 881, 1367)
426+
polygon = PackedVector2Array(826, 1258, 894, 1221, 1022, 1206, 1140, 1216, 1267, 1228, 1309, 1228, 1372, 1216, 1542, 1217, 1665, 1235, 1760, 1254, 1799, 1256, 1839, 1240, 1899, 1248, 1956, 1244, 1981, 1260, 1998, 1315, 1984, 1395, 1985, 1617, 2108, 1623, 2108, 1792, 1971, 1794, 1900, 1808, 1851, 1798, 1804, 1740, 1778, 1724, 1699, 1719, 1667, 1708, 1659, 1677, 1639, 1658, 1501, 1651, 1429, 1662, 1387, 1657, 1368, 1634, 1340, 1613, 1299, 1604, 1262, 1619, 1225, 1647, 1203, 1725, 1164, 1736, 1119, 1738, 1064, 1758, 1043, 1786, 1018, 1838, 979, 1858, 941, 1854, 919, 1819, 866, 1782, 796, 1782, 805, 1553, 954, 1556, 951, 1395, 803, 1392, 803, 1302)
427427

428428
[node name="Tree" parent="OnTheGround/Forest" instance=ExtResource("10_epkxq")]
429429
position = Vector2(1811, 1724.12)

0 commit comments

Comments
 (0)