regression-test-project/Text/Label.gd

19 lines
358 B
GDScript3
Raw Normal View History

2020-11-28 15:50:15 +01:00
extends Label
const TIME : float = 0.3
var time_to_stop : float = TIME
var current_type : int = 0
func _process(delta: float) -> void:
time_to_stop -= delta
if time_to_stop < 0:
time_to_stop = TIME
current_type += 1
current_type %= 2
if current_type == 0:
set_text("ŚWIERSZCZ NAD GŻEGŻÓŁKĄ W ŻÓŁCI")
else:
text += "AQWAMARYNA"