- class_name ThrustEffect
- extends GPUParticles2D
- @onready var smoke_emitter: GPUParticles2D = $Smoke
- func _on_thrusted(power: float) -> void:
- if power == 0.0 :
- set_emitting(false)
- smoke_emitter.set_emitting(false)
- else :
- set_emitting(true)
- smoke_emitter.set_emitting(true)
|