z-hack/Sword.gd

15 lines
261 B
GDScript3

extends RigidBody2D
# Declare member variables here. Examples:
# var a = 2
# var b = "text"
# Called when the node enters the scene tree for the first time.
func _ready():
$AnimatedSprite.play()
func _on_AnimatedSprite_animation_finished():
queue_free()