thrust_effect.gd 161 B

12345678910
  1. class_name ThrustEffect
  2. extends GPUParticles2D
  3. func _on_thrusted(power: float) -> void:
  4. if power == 0.0 :
  5. set_emitting(false)
  6. else :
  7. set_emitting(true)