Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | Renna048 |
func _process(delta): if input.is_action_pressed(“ui_accept”): get_tree().change_scene(“res://path/to/scene.tscn”)
func process(delta):
if Input.is_action_pressed("ui_accept"):
$Animationplayer.play("name_of_your_animation")
The path to your animation player node may be different depending on where it’s located in the scene tree.
umma | 2022-08-16 16:43