Skip to content

Commit

Permalink
修复了开场动画错误的bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Bunnycxk authored and ligen131 committed Jan 27, 2024
1 parent 964f4a8 commit 547fd75
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion objects/main_menu/main_menu.gd
Original file line number Diff line number Diff line change
Expand Up @@ -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.


Expand Down
8 changes: 6 additions & 2 deletions objects/main_menu/main_menu.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -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": [{
Expand All @@ -71,7 +74,7 @@ animations = [{
"texture": ExtResource("11_j1jkd")
}],
"loop": true,
"name": &"new_animation",
"name": &"wait_for_start",
"speed": 5.0
}]

Expand Down Expand Up @@ -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")

Expand Down

0 comments on commit 547fd75

Please sign in to comment.