File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -104,7 +104,7 @@ released.
104
104
_animatedSprite = GetNode<AnimatedSprite2D>("AnimatedSprite2D");
105
105
}
106
106
107
- public override _Process(float _delta )
107
+ public override void _Process(double delta )
108
108
{
109
109
if (Input.IsActionPressed("ui_right"))
110
110
{
@@ -252,7 +252,7 @@ released.
252
252
_animationPlayer = GetNode<AnimationPlayer>("AnimationPlayer");
253
253
}
254
254
255
- public override void _Process(float _delta )
255
+ public override void _Process(double delta )
256
256
{
257
257
if (Input.IsActionPressed("ui_right"))
258
258
{
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
72
72
GetNode<AudioStreamPlayer>("Player").Play();
73
73
}
74
74
75
- public override void _Process(float _delta )
75
+ public override void _Process(double delta )
76
76
{
77
77
double time = (Time.GetTicksUsec() - _timeBegin) / 1000000.0d;
78
78
time = Math.Max(0.0d, time - _timeDelay);
@@ -140,7 +140,7 @@ Here is the same code as before using this approach:
140
140
GetNode<AudioStreamPlayer>("Player").Play();
141
141
}
142
142
143
- public override void _Process(float _delta )
143
+ public override void _Process(double delta )
144
144
{
145
145
double time = GetNode<AudioStreamPlayer>("Player").GetPlaybackPosition() + AudioServer.GetTimeSinceLastMix();
146
146
// Compensate for output latency.
You can’t perform that action at this time.
0 commit comments