From 459ca758f0e713cfa6c102fea011454ca110ec44 Mon Sep 17 00:00:00 2001 From: Brent Frymire Date: Fri, 16 Feb 2024 10:50:17 -0500 Subject: [PATCH] Fix move to stop after duration instead of position --- scripts/stanncam/stanncam.gml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/stanncam/stanncam.gml b/scripts/stanncam/stanncam.gml index b129736..692f66b 100644 --- a/scripts/stanncam/stanncam.gml +++ b/scripts/stanncam/stanncam.gml @@ -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