Mostrando entradas con la etiqueta hace rotaciones en ejes "y""z""x". Mostrar todas las entradas
Mostrando entradas con la etiqueta hace rotaciones en ejes "y""z""x". Mostrar todas las entradas

domingo, 25 de agosto de 2024

Para godot 4.3 GDScript ejecuta animacion, hace rotaciones en ejes "y""z""x", tambien borra el nodo a los 2:50 segundos;

 extends Node3D


# Time elapsed since the node entered the scene

var time_elapsed = 0.0


# Called when the node enters the scene tree for the first time.

func _ready() -> void:

$AnimationPlayer.play("Default simplified|ATACA")


func _process(delta: float) -> void:

rotate_y(0.02)

rotate_x(0.0018)

rotate_z(0.0018)

# Update elapsed time

time_elapsed += delta


# Queue free the node after 2 seconds

if time_elapsed >= 2.50:

queue_free()