Thank you! I tested it and for some reason it's not working properly, did I mess something up? I wanted make it green when it's within the sector, otherwise red.
-- 1st test
if isMouseInCircleSector(sx/2, sy/2, 330, 0, 90) then
dxDrawCircle(sx/2, sy/2, 330, 0, 90, tocolor(0, 255, 0, 255))
else
dxDrawCircle(sx/2, sy/2, 330, 0, 90, tocolor(255, 0, 0, 255))
end
-- 2nd test
if isMouseInCircleSector(sx/2, sy/2, 330, 0, 180) then
dxDrawCircle(sx/2, sy/2, 330, 0, 180, tocolor(0, 255, 0, 255))
else
dxDrawCircle(sx/2, sy/2, 330, 0, 180, tocolor(255, 0, 0, 255))
end
https://imgur.com/a/g6udD5L