Posted 19 February 2017 - 04:09 PM
Hello Everyone,
I am currently working on a game and need some help. I want to make a circle generator that has click detection. Basically I will use something like:
Anything similar is fine. Thanks for helping!
I am currently working on a game and need some help. I want to make a circle generator that has click detection. Basically I will use something like:
drawCircle(25,8,5) --(x,y,radius)
local event,button,X,Y=os.pullEventRaw("mouse_click")
if in_circle(25,8,5,X,Y) then --(x,y,radius,ClickX,ClickY) return true if ClickX and ClickY are in the circle, otherwise return false
--do stuff
end
Anything similar is fine. Thanks for helping!