Hi people! Hope you're doing well.
I'm facing some trouble in my game trying to change the y position of the GPUParticles2D node when I'm scrolling the screen upward, because the particles are simulating snow falling and when I change the position of the GPUParticles2D, the result is bizarre. Do you have any idea to make it work satisfactorily?
Here's a demo of what's happening:

My current code is:
func _process(delta):
if player and player.global_position.y - (y_offset/2) < snow_particles.global_position.y:
snow_particles.global_position.y -= y_offset
snow_particles.preprocess = 30
Where y_offset is get_viewport_rect().size.y and snow_particles is the GPUParticles2D node.
Important to say that the GPUParticles2D seems just start to emmiting the particles when it's inside the viewport, so a gap with no snow falling happens.
Any hint is appreciated.