11 lines
No EOL
226 B
C#
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;
|
|
}
|
|
} |