fix anim bug

This commit is contained in:
2023-02-08 00:14:20 +01:00
parent 3dd42f7a71
commit 5aa477fc5c
5 changed files with 11 additions and 15 deletions
+1 -2
View File
@@ -9,7 +9,7 @@ var start = false
func _ready():
get_tree().get_root().print_tree()
anim.playing = true
anim.play("default")
$Draakje/Hoest.playing = true
var size = get_viewport_rect().size
anim.position = Vector2(size.x/2, size.y/2)
@@ -25,7 +25,6 @@ func _process(delta):
if !start:
get_tree().root.add_child(room)
var bg = get_theme_stylebox("panel")
#bg.bg_color = Color.BLACK
opacity_panel -= delta * 0.5
bg.bg_color.a = opacity_panel
if opacity_panel <= 0: