From 4593b8b7120b1c5cabf9e8606079827c1dc18c71 Mon Sep 17 00:00:00 2001 From: Raimon Zamora Date: Thu, 2 Feb 2023 15:35:50 +0100 Subject: [PATCH] =?UTF-8?q?-=20De=20una=20boton=C3=A0=20el=20text=20dels?= =?UTF-8?q?=20bocadills=20passa=20apressa?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- data/balloon.lua | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/data/balloon.lua b/data/balloon.lua index d49eebd..0845aa4 100644 --- a/data/balloon.lua +++ b/data/balloon.lua @@ -5,6 +5,7 @@ balloon={ cursor={x=0,y=0}, old_update=nil, rect=nil, + quick=false, show=function(txt,col,actorname,below,rectangle) local actor = actors.search(actorname) @@ -25,6 +26,7 @@ balloon={ balloon.pos=1 balloon.ini=1 balloon.obj=nil + balloon.quick=false balloon.old_update=update update=balloon.update @@ -77,7 +79,8 @@ balloon={ balloon.pos=1 balloon.ini=1 balloon.obj=obj - + balloon.quick=false + balloon.old_update=update update=balloon.update @@ -90,12 +93,16 @@ balloon={ end, update=function() - if balloon.pos<0 and anykey() then - update=balloon.old_update - scene.cont() + if anykey() then + if balloon.pos<0 then + update=balloon.old_update + scene.cont() + else + balloon.quick=true + end end - if not beat() then return end + if not beat() and not balloon.quick then return end if balloon.pos<0 then if balloon.obj then