Fixed double click cause actions being executed twice on "arrived" signal.

Known bug: NPC movement broken ("arrived" not emitted?)
This commit is contained in:
Julian Murgia
2021-01-28 08:49:44 +01:00
parent 2552e444ed
commit 14e85edba7
7 changed files with 50 additions and 40 deletions

View File

@@ -373,6 +373,10 @@ __meta__ = {
"_edit_use_anchors_": false
}
[node name="Line2D" type="Line2D" parent="Hotspots/trigger_left"]
points = PoolVector2Array( 718.237, 1756.04, 724.544, 1950.34, 815.761, 1947.51, 801.579, 1756.32, 719.359, 1756.32 )
width = 2.0
[node name="trigger_right" type="Area2D" parent="Hotspots"]
position = Vector2( 220, 0 )
script = ExtResource( 7 )
@@ -402,6 +406,10 @@ __meta__ = {
"_edit_use_anchors_": false
}
[node name="Line2D" type="Line2D" parent="Hotspots/trigger_right"]
points = PoolVector2Array( 1089.37, 1757.17, 1097.85, 1949.99, 1187.37, 1947.87, 1174.21, 1755.79, 1090.78, 1756.18 )
width = 2.0
[node name="light_left" type="Area2D" parent="Hotspots"]
position = Vector2( 412, 0 )
script = ExtResource( 7 )

View File

@@ -159,6 +159,7 @@ interact_positions = {
}
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="Hotspots/m_door"]
visible = false
polygon = PoolVector2Array( 557.522, 348.813, 551.222, 42.6524, 743.99, 43.9123, 750.289, 345.033 )
[node name="Position2D" type="Position2D" parent="Hotspots/m_door"]

View File

@@ -16,11 +16,11 @@
#change_scene res://game/rooms/room5/room5.tscn
# 6/ character room
#change_scene res://game/rooms/room6/room6.tscn
change_scene res://game/rooms/room6/room6.tscn
# 7/ long room with camera shift to object 2 if look on object 1
# and stairs with camera shift too
change_scene res://game/rooms/room7/room7.tscn
#change_scene res://game/rooms/room7/room7.tscn
# 8/ puzzle in superposed scene
#change_scene res://game/rooms/room8/room8.tscn