Skip to content

Commit

Permalink
Merge pull request #64 from bfrymire/63-fix-move-to-stop-on-duration
Browse files Browse the repository at this point in the history
Fix move to stop after duration instead of position
  • Loading branch information
bfrymire authored Feb 16, 2024
2 parents fc07732 + 459ca75 commit 85341c2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/stanncam/stanncam.gml
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,9 @@ function stanncam(_x=0, _y=0, _width=global.game_w, _height=global.game_h, _surf

__t++;

if(x == __xTo && y == __yTo) __moving = false;
if(__t > __duration){
__moving = false;
}
}
#endregion

Expand Down

0 comments on commit 85341c2

Please sign in to comment.