disable sg2083 and pan camera over to fami when defeated
This commit is contained in:
parent
12d6adaf94
commit
3ff2f837d8
5 changed files with 32 additions and 4 deletions
|
@ -1,4 +1,4 @@
|
|||
[gd_scene load_steps=9 format=2]
|
||||
[gd_scene load_steps=10 format=2]
|
||||
|
||||
[ext_resource path="res://objects/enemy/boss/sg2083.tscn" type="PackedScene" id=1]
|
||||
[ext_resource path="res://tilesets/t_laboratory.tres" type="TileSet" id=2]
|
||||
|
@ -8,12 +8,23 @@
|
|||
[ext_resource path="res://tilesets/t_station.tres" type="TileSet" id=6]
|
||||
[ext_resource path="res://cutscenes/fami_cutscene.tscn" type="PackedScene" id=7]
|
||||
[ext_resource path="res://objects/lore/boss/fami.tscn" type="PackedScene" id=8]
|
||||
[ext_resource path="res://graphics/backgrounds/fami_rooftop.png" type="Texture" id=9]
|
||||
|
||||
[node name="Map" type="Node2D" groups=["map"]]
|
||||
pause_mode = 1
|
||||
script = ExtResource( 3 )
|
||||
lore_entries = [ ExtResource( 8 ) ]
|
||||
|
||||
[node name="ParallaxBackground" type="ParallaxBackground" parent="."]
|
||||
|
||||
[node name="ParallaxLayer" type="ParallaxLayer" parent="ParallaxBackground"]
|
||||
motion_scale = Vector2( 0.5, 1 )
|
||||
motion_offset = Vector2( -256, 0 )
|
||||
|
||||
[node name="Sprite" type="Sprite" parent="ParallaxBackground/ParallaxLayer"]
|
||||
texture = ExtResource( 9 )
|
||||
centered = false
|
||||
|
||||
[node name="GUI" type="CanvasLayer" parent="."]
|
||||
|
||||
[node name="Control" type="HBoxContainer" parent="GUI"]
|
||||
|
@ -112,13 +123,15 @@ visible = false
|
|||
position = Vector2( 0, 12 )
|
||||
famira_path = NodePath("../Famira")
|
||||
|
||||
[node name="Camera2D" type="Camera2D" parent="2083"]
|
||||
[node name="Camera" type="Camera2D" parent="2083"]
|
||||
unique_name_in_owner = true
|
||||
position = Vector2( 0, -4 )
|
||||
offset = Vector2( 0, -8 )
|
||||
anchor_mode = 0
|
||||
current = true
|
||||
limit_top = 8
|
||||
limit_bottom = 192
|
||||
limit_smoothed = true
|
||||
|
||||
[node name="Famira" parent="." instance=ExtResource( 4 )]
|
||||
visible = false
|
||||
|
@ -128,4 +141,5 @@ sg2083_path = NodePath("../2083")
|
|||
[connection signal="cutscene_finished" from="FamiCutscene" to="." method="_on_cutscene_finished"]
|
||||
[connection signal="energy_changed" from="2083" to="." method="_on_2083_energy_changed"]
|
||||
[connection signal="health_changed" from="2083" to="." method="_on_2083_health_changed"]
|
||||
[connection signal="died" from="Famira" to="." method="_on_Famira_died"]
|
||||
[connection signal="health_changed" from="Famira" to="." method="_on_Famira_health_changed"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue