mirror of
https://github.com/JHDev2006/Super-Mario-Bros.-Remastered-Public.git
synced 2025-10-22 15:38:14 +00:00
added a quick updating thing to resource extraction + fixed a bug where the timer warnings would play, upon death
This commit is contained in:
@@ -26,6 +26,8 @@ func _process(_delta: float) -> void:
|
||||
get_parent().visible = percent < 1 and Settings.file.visuals.visible_timers
|
||||
frame = lerp(0, 6, percent)
|
||||
if percent >= warn_threshold and Settings.file.audio.extra_sfx == 1:
|
||||
if node is Timer:
|
||||
if node.is_stopped(): return
|
||||
if can_warn:
|
||||
can_warn = false
|
||||
AudioManager.play_global_sfx("timer_warning")
|
||||
|
Reference in New Issue
Block a user