Add set_angle 'immediate' parameter. (#357)

* Add set_angle 'immediate' parameter.
Modified fade_in transition to happen between :setup and :ready so that :ready don't start before fade_in is finished.

* docs: Automatic update of API docs

* Same fixes in style and removed a useless test.

Co-authored-by: StraToN <StraToN@users.noreply.github.com>
This commit is contained in:
Julian Murgia
2021-08-08 12:10:20 +02:00
committed by GitHub
parent a0218e2998
commit c711db5d3c
10 changed files with 142 additions and 42 deletions

View File

@@ -12,4 +12,9 @@
:ready
set_sound_state bg_music res://game/sfx/contemplation.ogg true
walk player r1_destination_point
wait 2
walk player r1_destination_point2
wait 2
set_angle player 225 false

View File

@@ -58,6 +58,7 @@ is_exit = true
tooltip_name = "Exit"
default_action = "walk"
dialog_color = Color( 1, 1, 1, 1 )
animations = null
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="Hotspots/r_door"]
polygon = PoolVector2Array( 1177.94, 348.61, 1175.95, 45.3759, 1276.06, 92.0953, 1277.95, 399.407 )
@@ -74,6 +75,7 @@ esc_script = "res://game/rooms/room01/esc/wall_item.esc"
tooltip_name = "Item on the wall"
default_action = "look"
dialog_color = Color( 1, 1, 1, 1 )
animations = null
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="Hotspots/item"]
polygon = PoolVector2Array( 635.586, 253.345, 568.928, 60.1716, 709.047, 120.028, 699.524, 247.903 )
@@ -109,6 +111,7 @@ esc_script = "res://game/rooms/room01/esc/wall_item_popupdialog.esc"
tooltip_name = "Item on the wall"
default_action = "look"
dialog_color = Color( 1, 1, 1, 1 )
animations = null
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="Hotspots/item2"]
polygon = PoolVector2Array( 635.586, 253.345, 568.928, 60.1716, 709.047, 120.028, 699.524, 247.903 )
@@ -137,7 +140,7 @@ __meta__ = {
}
[node name="player_start" type="Position2D" parent="."]
position = Vector2( 76.7617, 437.649 )
position = Vector2( 653.761, 443.306 )
script = ExtResource( 7 )
global_id = "r1_start"
@@ -146,3 +149,9 @@ position = Vector2( 476.984, 487.146 )
script = ExtResource( 7 )
global_id = "r1_destination_point"
interaction_direction = 4
[node name="destination_point2" type="Position2D" parent="."]
position = Vector2( 994.586, 458.862 )
script = ExtResource( 7 )
global_id = "r1_destination_point2"
player_orients_on_arrival = false