monstereffects.gd 232 B

1234567891011121314
  1. extends Sprite
  2. var flash = false
  3. var counter = 0
  4. func _physics_process(delta):
  5. if flash:
  6. counter += 1
  7. modulate.r *= 1.4
  8. modulate.g *= 1.3
  9. modulate.b *= 0.8
  10. if counter >= 5:
  11. flash = false
  12. modulate = Color(1,1,1,1)