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
2020-12-29 08:29:25 +01:00
const TIME : float = 0.3
2020-11-28 15:50:15 +01:00
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"