1bit-game-jam/scripts/MovingParallaxBackground.cs
2023-08-19 12:28:56 +03:00

11 lines
No EOL
226 B
C#

using Godot;
public partial class MovingParallaxBackground : ParallaxBackground
{
[Export] public Vector2 Speed;
public override void _Process(double delta)
{
ScrollOffset += Speed * (float)delta;
}
}