From 964cb37d7c9ea7694de4f47ebb5bcababcc7b234 Mon Sep 17 00:00:00 2001 From: Raimon Zamora Date: Fri, 3 Feb 2023 19:02:46 +0100 Subject: [PATCH] - FIX: els bocadills apareixen on toca quan fas scroll --- data/balloon.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/data/balloon.lua b/data/balloon.lua index e757af1..085da6e 100644 --- a/data/balloon.lua +++ b/data/balloon.lua @@ -12,11 +12,11 @@ balloon={ if not actor then return end if rectangle==nil then - balloon.rect={x=8,y=actor.y*8-4,w=144,h=35} + balloon.rect={x=8,y=actor.y*8-4-game.cam.y,w=144,h=35} else balloon.rect={} balloon.rect.x=rectangle.x*8 - balloon.rect.y=actor.y*8-4 + balloon.rect.y=actor.y*8-4-game.cam.y balloon.rect.w=rectangle.w*8 balloon.rect.h=rectangle.h*9+8 end @@ -31,7 +31,7 @@ balloon={ balloon.old_update=update update=balloon.update - local pos=actor.x*8+8 + local pos=actor.x*8+8-game.cam.x if below==nil or below==false then balloon.rect.y=balloon.rect.y-balloon.rect.h-16