Beginning of lesson 33. House polygon working and we are able to speak with NPC at world map, but not in starter town.
This commit is contained in:
@@ -250,6 +250,9 @@ metadata/_custom_type_script = "uid://dcg3hnc5yq61d"
|
||||
position = Vector2(416, 304)
|
||||
layerName = "Starterhaus"
|
||||
|
||||
[node name="CollisionShape2D" parent="Entities/ToggleRoofTrigger" index="0"]
|
||||
polygon = PackedVector2Array(16, 0, 16, 0, 32, 0, 32, 16, -16, 16, -16, 0, 0, 0, 0, -16, -64, -16, -64, -112, 96, -112, 96, -16, 16, -16)
|
||||
|
||||
[node name="Guard1" parent="Entities" instance=ExtResource("5_4hge2")]
|
||||
position = Vector2(48, 256)
|
||||
|
||||
@@ -257,6 +260,10 @@ position = Vector2(48, 256)
|
||||
sprite_frames = SubResource("SpriteFrames_m26wn")
|
||||
animation = &"Idle Left"
|
||||
|
||||
[node name="SpeachRadius" parent="Entities/Guard1" index="5"]
|
||||
collision_layer = 2
|
||||
collision_mask = 4
|
||||
|
||||
[node name="Guard2" parent="Entities" instance=ExtResource("5_4hge2")]
|
||||
position = Vector2(48, 208)
|
||||
|
||||
@@ -264,6 +271,12 @@ position = Vector2(48, 208)
|
||||
sprite_frames = SubResource("SpriteFrames_k3o61")
|
||||
animation = &"Idle Left"
|
||||
|
||||
[node name="SpeachRadius" parent="Entities/Guard2" index="5"]
|
||||
collision_layer = 2
|
||||
collision_mask = 4
|
||||
|
||||
[connection signal="area_exited" from="Entities/ToggleRoofTrigger" to="Entities/ToggleRoofTrigger" method="_on_area_exited"]
|
||||
|
||||
[editable path="Entities/ToggleRoofTrigger"]
|
||||
[editable path="Entities/Guard1"]
|
||||
[editable path="Entities/Guard2"]
|
||||
|
||||
Reference in New Issue
Block a user