Hello, first of all I'm not a professional scripter as you can see, but i was trying to create a simple radar(minimap) and i have turned into failure when i was trying to make it rotating. So i made the image selection with dxDrawImageSection and this function's rotation makes the whole image rotating, which is not my final goal. If you can help me to understand it I would be so thankful.
This is the remapping function what I would like to use:
function reMap(value, low1, high1, low2, high2)
return low2 + (value - low1) * (high2 - low2) / (high1 - low1)
end