From 3b14fe8dc762d6ae8ae2377fbe0e82e6e1ec9c7e Mon Sep 17 00:00:00 2001 From: Bunnycxk <986826561@qq.com> Date: Sun, 28 Jan 2024 04:10:46 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=BA=86=E5=BC=80=E5=9C=BA?= =?UTF-8?q?=E5=8A=A8=E7=94=BB=E9=94=99=E8=AF=AF=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- objects/main_menu/main_menu.gd | 2 +- objects/main_menu/main_menu.tscn | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/objects/main_menu/main_menu.gd b/objects/main_menu/main_menu.gd index 48b9e54..de15151 100644 --- a/objects/main_menu/main_menu.gd +++ b/objects/main_menu/main_menu.gd @@ -4,7 +4,7 @@ var ChapterMenu = preload("res://levels/chapter_menu/chapter_menu.tscn") # Called when the node enters the scene tree for the first time. func _ready(): - play() + play("init") pass # Replace with function body. diff --git a/objects/main_menu/main_menu.tscn b/objects/main_menu/main_menu.tscn index a330172..16c9a9a 100644 --- a/objects/main_menu/main_menu.tscn +++ b/objects/main_menu/main_menu.tscn @@ -52,9 +52,12 @@ animations = [{ }, { "duration": 1.0, "texture": ExtResource("10_6ukle") +}, { +"duration": 1.0, +"texture": ExtResource("11_j1jkd") }], "loop": false, -"name": &"default", +"name": &"init", "speed": 5.0 }, { "frames": [{ @@ -71,7 +74,7 @@ animations = [{ "texture": ExtResource("11_j1jkd") }], "loop": true, -"name": &"new_animation", +"name": &"wait_for_start", "speed": 5.0 }] @@ -110,6 +113,7 @@ animations = [{ [node name="MainMenu" type="AnimatedSprite2D"] scale = Vector2(2.5, 2.5) sprite_frames = SubResource("SpriteFrames_b4517") +animation = &"init" centered = false script = ExtResource("14_npy3s")