This repository has been archived on 2025-09-12. You can view files and clone it, but cannot push or open issues or pull requests.
ld48/FCTManager.gd
Ryan 5088463e41 Adjusted floating text Z order
text now sits on top of parent
2021-05-01 17:20:05 -04:00

12 lines
302 B
GDScript

extends Node2D
var FCT = preload("res://character/FCT.tscn")
export var travel = Vector2(0, -80)
export var duration = 2
export var spread = PI/4
func _show_value(value, size=12, red=false):
var fct = FCT.instance()
add_child(fct)
fct._show_value(str(value), travel, duration, spread, size, red)