mirror of
https://github.com/JHDev2006/Super-Mario-Bros.-Remastered-Public.git
synced 2025-10-22 15:38:14 +00:00
Merge pull request #196 from KirbyKid256/pulls/resource-pack-expansion
Resource Pack Expansion Pt.1 - Campaign Icons and Audio
This commit is contained in:
@@ -11,6 +11,11 @@ func _enter_tree() -> void:
|
||||
i.uppercase = true
|
||||
|
||||
func _ready() -> void:
|
||||
var animation: Animation = $AnimationPlayer.get_animation_library("").get_animation(&"Go")
|
||||
var track: int = animation.find_track("AudioStreamPlayer", Animation.TYPE_AUDIO)
|
||||
for key in animation.track_get_key_count(track):
|
||||
var resource_getter = ResourceGetter.new() #Why do I have to make a new one each time?
|
||||
animation.audio_track_set_key_stream(track, key, resource_getter.get_resource(animation.audio_track_get_key_stream(track, key)))
|
||||
Global.debugged_in = false
|
||||
Global.get_node("GameHUD").hide()
|
||||
await get_tree().create_timer(1, false).timeout
|
||||
|
Reference in New Issue
Block a user