door interact

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Renna048

help me please, i put a port in my project, and i would like that when the player presses a key to change the scene, could someone help me?

Question doesn’t make sense, please give more clarity.

umma | 2022-08-13 22:27

I added a door in my project and I would like that when the player presses a key it would change scene

Renna048 | 2022-08-13 22:32

You mean like this:

func _process(delta):
  if input.is_action_pressed("ui_accept"):
    get_tree().change_scene("res://path/to/scene.tscn")

Change the path to the scene you would like to load. You can right click on your scene to get the path to it.

umma | 2022-08-14 01:08

Thanks man for help

Renna048 | 2022-08-14 01:11