12 lines
218 B
GDScript
12 lines
218 B
GDScript
extends ColorRect
|
|
|
|
func _ready():
|
|
EventBus.player_dmg.connect(flash_red)
|
|
|
|
|
|
func flash_red():
|
|
var tween = create_tween()
|
|
|
|
color.a = 0.3
|
|
|
|
tween.tween_property(self, "color:a", 0.0, 0.2).set_trans(Tween.TRANS_SINE)
|