generated from krampus/template-godot4
Player HUD clear alert should only play when the alert level was in the danger zone
This commit is contained in:
parent
34dab35917
commit
92a516577b
@ -23,4 +23,5 @@ func play_tank_full_alert() -> void:
|
|||||||
|
|
||||||
|
|
||||||
func _on_clear_alert() -> void:
|
func _on_clear_alert() -> void:
|
||||||
alert_clear_player.play("alert_clear")
|
if World.instance.manager.alert_level >= 2:
|
||||||
|
alert_clear_player.play("alert_clear")
|
||||||
|
@ -458,10 +458,10 @@ anchor_left = 0.5
|
|||||||
anchor_top = 0.5
|
anchor_top = 0.5
|
||||||
anchor_right = 0.5
|
anchor_right = 0.5
|
||||||
anchor_bottom = 0.5
|
anchor_bottom = 0.5
|
||||||
offset_left = -20.2593
|
offset_left = -20.7219
|
||||||
offset_top = -19.6536
|
offset_top = -16.7788
|
||||||
offset_right = -20.2593
|
offset_right = -20.7219
|
||||||
offset_bottom = -19.6536
|
offset_bottom = -16.7788
|
||||||
grow_horizontal = 2
|
grow_horizontal = 2
|
||||||
grow_vertical = 2
|
grow_vertical = 2
|
||||||
script = ExtResource("4_ud8na")
|
script = ExtResource("4_ud8na")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user