Initial commit (1/2)
This commit is contained in:
commit
3411c5796d
66 changed files with 2261 additions and 0 deletions
8
scripts/MSEngineParticles.gd
Normal file
8
scripts/MSEngineParticles.gd
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
extends GPUParticles2D
|
||||
|
||||
@onready var MSEngine = $".."
|
||||
|
||||
func _process(_delta):
|
||||
var SpeedPercentage = clamp(MSEngine.Speed / MSEngine.MaxSpeed, 0.75, 1.5)
|
||||
speed_scale = SpeedPercentage if MSEngine.Speed > 0 else 1
|
||||
emitting = MSEngine.Speed > 0
|
||||
Loading…
Add table
Add a link
Reference in a new issue