---------------------------------------------------------------------------------------------------------------
Script para Godot3d 4.2 que activa una animacion cuando se toca el Area3d, en este caso abre una puerta al pasar;
es lo mismo que para borrarla....pero cambia una linea del script--------
----------------------------------------------------------------------------------------------------------------
extends Area3D
func _on_area_entered(area):
$AnimationPlayer.play("abreazul")
pass # Replace with function body.
--------------------------------------------------------------------------------------------------------------------
extends Area3D
func _on_area_entered(area):
queue_free()
pass # Replace with function body.
------------------------------------------------------------------------------------------------------------------
VIDEO
VIDEO
HACE LA ANIMACION
-----------------------------------------------------------------------------------------------------------------
extends Area3D
func _on_area_entered(area):
$AnimationPlayer.play("abreazul")
pass # Replace with function body.
----------------------------------------------------------------------------------------------------------------------
PROBOCA EL SONIDO
--------------------------------------------------------------------------------------------------------------------
extends Area3D
func _on_area_entered(area):
$AudioStreamPlayer3D.play()
pass # Replace with function body.
-----------------------------------------------------------------------------------------------------------------