diff --git a/sonic-radiance.love/scenes/overworld/map.lua b/sonic-radiance.love/scenes/overworld/map.lua index 824f64b..6567707 100644 --- a/sonic-radiance.love/scenes/overworld/map.lua +++ b/sonic-radiance.love/scenes/overworld/map.lua @@ -95,6 +95,13 @@ end -- TILE FUNCTIONS -- Get tiles +function TiledMultiMap:getTileTypeAtPoint(x, y) + local wrapper = self:getMapAtPoint(x, y) + if (wrapper ~= nil) then + return wrapper:getTileTypeAtPoint(x, y) + end +end + function TiledMultiMap:haveTileTypeInRect(x, y, w, h, type) local listWrapper = self:getMapsInRect(x, y, w, h) for i, wrapper in ipairs(listWrapper) do