hello, I want that when the player gets close to something and clicks, it plays an animation

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: 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"):

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