From 8a88131d1e3e800cc1f9f454afde7dae531c838e Mon Sep 17 00:00:00 2001 From: Nyeogmi Date: Sat, 17 Dec 2022 16:26:30 -0800 Subject: [PATCH] Immediately recover after a fall --- chameleonic.p8 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/chameleonic.p8 b/chameleonic.p8 index d05b44d..63b08b1 100644 --- a/chameleonic.p8 +++ b/chameleonic.p8 @@ -609,8 +609,9 @@ function player:_vanish_if_requested() if self.vanishing then self.vanish_frame+=1 - if (self.fall_frame>10 or self.vanish_frame>20) then + if (self.fall_frame>0 or self.vanish_frame>20) then level:restart() + self.vanish_frame=20 self.vanishing=false end else