Skip to content

Commit

Permalink
Finally fix enemy behavior on respawn
Browse files Browse the repository at this point in the history
  • Loading branch information
MandL27 committed May 3, 2022
1 parent 14198ad commit 00d445f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Entities/Enemy/Enemy.cs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public override void _PhysicsProcess(float delta)
{
SpeedRem += Speed;

if (((Player)ChaseTarget).PauseFrames == 1)
if (GetParent().GetParent().GetNode<Player>("Player").PauseFrames == 35)
{
CurrCell = 0;
NextCell = 1;
Expand Down
2 changes: 1 addition & 1 deletion UI/Score.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public override void _PhysicsProcess(float delta)
ScoreRoll += Globals.RollSpeed;
updated = true;
}
if (ScoreRoll > Globals.Score)
if (ScoreRoll > Globals.Score || ScoreRoll < 0)
{
ScoreRoll = Globals.Score;
updated = true;
Expand Down

0 comments on commit 00d445f

Please sign in to comment.