workaround: when board of devs is initialised with processsing disabled, the void cards gets messed up.
This commit is contained in:
parent
12226e04f3
commit
14e310c8eb
|
|
@ -70,7 +70,14 @@ var void_active:
|
|||
void_active = become_void
|
||||
|
||||
func _process(delta):
|
||||
|
||||
if void_active != $GPUParticles2D.is_void:
|
||||
$GPUParticles2D.is_void = void_active
|
||||
$GPUParticles2D.emitting = void_active
|
||||
$Sprite2D.is_void = void_active
|
||||
|
||||
if void_active and not State.reduce_motion:
|
||||
|
||||
noise_position += delta * 10
|
||||
|
||||
var random_position = Vector2(noise.get_noise_1d(noise_position*2), noise.get_noise_1d(-noise_position))
|
||||
|
|
|
|||
Loading…
Reference in New Issue