brackeys-12/error_ping.gd

19 lines
470 B
GDScript3
Raw Normal View History

2024-09-24 01:07:44 +00:00
extends ColorRect
var type
func _ready() -> void:
scale = Vector2.ZERO
var tween = create_tween()
tween.set_ease(Tween.EASE_IN_OUT)
tween.set_trans(Tween.TRANS_QUAD)
tween.set_loops()
tween.tween_property(self, "modulate", Color(1, 1, 1, 0.75), 1)
tween.tween_property(self, "modulate", Color.WHITE, 1)
var tween2 = create_tween()
tween2.set_ease(Tween.EASE_OUT)
tween2.set_trans(Tween.TRANS_BACK)
tween2.tween_property(self, "scale", Vector2.ONE, 0.5)