cosmic/scripts/TurboParticles.gd
Алкесей Мирнеков 3411c5796d
Initial commit (1/2)
2023-11-05 16:23:18 +03:00

7 lines
204 B
GDScript

extends GPUParticles2D
@onready var MSEngine = $".."
func _process(_delta):
var SpeedPercentage = MSEngine.Speed / MSEngine.MaxSpeed if MSEngine.Ship is MainShip else 0
emitting = SpeedPercentage > 1