[FIX] Requreix mini 1.5.2
This commit is contained in:
@@ -201,7 +201,7 @@ function abad_jump()
|
||||
local tile1_hit_type= arc_check_tile(x1_check, y_check )
|
||||
local tile2_hit_type= arc_check_tile(x2_check, y_check)
|
||||
local not_block_tile = tile1_hit_type ~= tiletype.block and tile2_hit_type ~= tiletype.block
|
||||
-- local switch_tile = tile1_hit_type == tiletype.switch or tile2_hit_type == tiletype.switch
|
||||
local switch_tile = tile1_hit_type == tiletype.switch or tile2_hit_type == tiletype.switch
|
||||
-- print("JUMP > "..x1_check..", "..x2_check..", "..y_check)
|
||||
-- print("T1= "..tile1_hit_type.." / T2= "..tile2_hit_type.." / SW= "..tiletype.switch)
|
||||
-- local msg = "BLOCK TILE HITTED"
|
||||
@@ -220,7 +220,16 @@ function abad_jump()
|
||||
--else
|
||||
-- abad.y=abad.y-vspace
|
||||
--end
|
||||
abad.y=abad.y-vspace
|
||||
if switch_tile then
|
||||
-- Si la posició actual no es dins del tile, avançar per a colisionar
|
||||
if (arc_check_tile(x1_check, abad.y)~= tiletype.switch and
|
||||
arc_check_tile(x2_check, abad.y)~= tiletype.switch)
|
||||
then
|
||||
abad.y=abad.y-vspace
|
||||
end
|
||||
else
|
||||
abad.y=abad.y-vspace
|
||||
end
|
||||
else
|
||||
local tile1_hit = arc_get_tile(x1_check, y_check )
|
||||
local tile2_hit = arc_get_tile(x2_check, y_check)
|
||||
|
||||
Reference in New Issue
Block a user