Temporarily disabled notifications from following the player.

This commit is contained in:
Henry Faber 2026-06-22 01:24:56 +01:00
parent f69862af8c
commit 68d0cf9580

View file

@ -24,7 +24,7 @@ func show_notification(weapon_name: String, player_node: Node2D, player_sprite_s
_player.tree_exiting.connect(queue_free) _player.tree_exiting.connect(queue_free)
_sprite_size = player_sprite_size _sprite_size = player_sprite_size
_origin_offset = origin_offset _origin_offset = origin_offset
_follow_player = true _follow_player = false # Disable movement for testing
# Wait one frame for layout to resolve shrink-to-fit widths # Wait one frame for layout to resolve shrink-to-fit widths
await get_tree().process_frame await get_tree().process_frame
@ -51,10 +51,10 @@ func show_notification(weapon_name: String, player_node: Node2D, player_sprite_s
# Wait for fade-in to finish, then resume following # Wait for fade-in to finish, then resume following
await tween.finished await tween.finished
_follow_player = true # _follow_player = true
# Stay fully visible for a moment before fading # Stay fully visible for a moment before fading
await get_tree().create_timer(0.35).timeout await get_tree().create_timer(0.25).timeout
# Record current position as the fade-out starting point # Record current position as the fade-out starting point
await get_tree().process_frame await get_tree().process_frame