Post Game jam commit
This commit is contained in:
commit
6db2131520
164 changed files with 172524 additions and 0 deletions
12
scripts/dmg_flash.gd
Normal file
12
scripts/dmg_flash.gd
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
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)
|
||||
Loading…
Add table
Add a link
Reference in a new issue