Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

修复了开场动画错误的bug #19

Merged
merged 1 commit into from
Jan 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading