More work on combat
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
extends Sprite2D
|
||||
|
||||
@onready var label : Label = $Label
|
||||
|
||||
func _ready():
|
||||
var move_tween = create_tween()
|
||||
move_tween.tween_property(self, "position:y", -40, 1.25)
|
||||
@@ -10,3 +12,6 @@ func _ready():
|
||||
fade_tween.tween_property(self, "modulate:a", 0, .25)
|
||||
fade_tween.tween_callback(queue_free)
|
||||
|
||||
func set_label(string : String) -> void:
|
||||
if label != null:
|
||||
label.text = string
|
||||
|
||||
Reference in New Issue
Block a user