File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -104,7 +104,7 @@ released.
104104 _animatedSprite = GetNode<AnimatedSprite2D>("AnimatedSprite2D");
105105 }
106106
107- public override _Process(float _delta )
107+ public override void _Process(double delta )
108108 {
109109 if (Input.IsActionPressed("ui_right"))
110110 {
@@ -252,7 +252,7 @@ released.
252252 _animationPlayer = GetNode<AnimationPlayer>("AnimationPlayer");
253253 }
254254
255- public override void _Process(float _delta )
255+ public override void _Process(double delta )
256256 {
257257 if (Input.IsActionPressed("ui_right"))
258258 {
Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ Add these two and it's possible to guess almost exactly when sound or music will
7272 GetNode<AudioStreamPlayer>("Player").Play();
7373 }
7474
75- public override void _Process(float _delta )
75+ public override void _Process(double delta )
7676 {
7777 double time = (Time.GetTicksUsec() - _timeBegin) / 1000000.0d;
7878 time = Math.Max(0.0d, time - _timeDelay);
@@ -140,7 +140,7 @@ Here is the same code as before using this approach:
140140 GetNode<AudioStreamPlayer>("Player").Play();
141141 }
142142
143- public override void _Process(float _delta )
143+ public override void _Process(double delta )
144144 {
145145 double time = GetNode<AudioStreamPlayer>("Player").GetPlaybackPosition() + AudioServer.GetTimeSinceLastMix();
146146 // Compensate for output latency.
You can’t perform that action at this time.
0 commit comments