I use for the background sliced images. The problem is when i zoom the screen - sometimes happen the images has flickering borders. I know in as3 / flash there was this problem too, but this can be fixed by turning off by anti aliasing. Solar2D has no anti aliasing anymore, had anyone the same problem? Has anyone a practical solution?
I want to fix it by -> “xPos = xPos - 0.1” in the loop
Here is the Code Snipped:
local xPos = 0
local yPos = 0
if (worldMapConfigDataVo ~= nil) then
for x = 1, worldMapConfigDataVo.tileX do
---@type DisplayObject
local background
for y = 1, worldMapConfigDataVo.tileY do
local img, isError = assetModel.loadImage("countrySide/background/" .. stringLower(dataVo.worldMapId) .. "_bg_" .. y .. "_" .. x)
if (isError == false) then
background = img
background.anchorX = 0
background.anchorY = 0
background.y = yPos
background.x = xPos
backgroundTiles:insert(background)
yPos = yPos + background.height
end
end
yPos = 0
if (background ~= nil) then
xPos = xPos + background.width
end
end
else
logger.error("countrySideView <init> worldMapConfigDataVo is NIL ")
end