El personaje voltea
a ver al cursor siempre y cuando el cursor se encuentre en un área
de colisión.
Comenzamos con la
cámara.
Sus ordenes son las
siguientes.
Ahora nuestro
personaje.
Debe seguir con
estas reglas.
Llévatelo para tu computadora.
Nota:
Si te sale este error:
Node origin and target are in the same position, look_at() failed
Cambia esta línea:
func _ready():
punto = Vector3(0, get_translation().y, 0)
Por esta:
func _ready():
punto = Vector3(1, get_translation().y, 0)
Node origin and target are in the same position, look_at() failed
Cambia esta línea:
func _ready():
punto = Vector3(0, get_translation().y, 0)
Por esta:
func _ready():
punto = Vector3(1, get_translation().y, 0)
Comentarios
Publicar un comentario