From 4bb8612f75ca3280f735b83317bcac5b59de4744 Mon Sep 17 00:00:00 2001 From: Nyeogmi Date: Sun, 18 Dec 2022 18:42:13 -0800 Subject: [PATCH] Lower-token way to prevent flicker --- chameleonic.p8 | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/chameleonic.p8 b/chameleonic.p8 index 022ce99..9411a52 100644 --- a/chameleonic.p8 +++ b/chameleonic.p8 @@ -579,14 +579,6 @@ function player:update() -- todo: other anim stuff xs[#xs].px=0 xs[#xs].py=0 - xs[1].update=function(s) - if (s.rope) s.rope:prevent_highlight(true) - return true - end - xs[#xs].update=function(s) - if (s.rope) s.rope:prevent_highlight(false) - return true - end return xs end @@ -653,6 +645,7 @@ function player:update() end end + if (self.rope) self.rope:prevent_highlight(#self.todo) _apply(self,self.todo) if self.rope then