Temporarily disabled notifications from following the player.
This commit is contained in:
parent
f69862af8c
commit
68d0cf9580
1 changed files with 3 additions and 3 deletions
|
|
@ -24,7 +24,7 @@ func show_notification(weapon_name: String, player_node: Node2D, player_sprite_s
|
|||
_player.tree_exiting.connect(queue_free)
|
||||
_sprite_size = player_sprite_size
|
||||
_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
|
||||
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
|
||||
await tween.finished
|
||||
_follow_player = true
|
||||
# _follow_player = true
|
||||
|
||||
# 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
|
||||
await get_tree().process_frame
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue