First_Person_Slapper/Levels/Sparks.gd

13 lines
205 B
GDScript3
Raw Normal View History

2022-10-12 19:30:37 -04:00
extends CPUParticles
2022-10-12 21:38:37 -04:00
onready var light = $OmniLight
2022-10-12 19:30:37 -04:00
func _on_Timer_timeout():
emitting = !emitting
2022-10-12 21:38:37 -04:00
if light:
if light.light_energy > 0 :
light.light_energy = 0
else:
light.light_energy = 5