First_Person_Slapper/Levels/Sparks.gd
2022-10-12 21:38:37 -04:00

13 lines
205 B
GDScript

extends CPUParticles
onready var light = $OmniLight
func _on_Timer_timeout():
emitting = !emitting
if light:
if light.light_energy > 0 :
light.light_energy = 0
else:
light.light_energy = 5