Posted 02 February 2013 - 09:59 AM
Before anything i just wanna say if it is possible keep this as simple as you can. I am still learning and am by no means skilled. This doesn't mean i don't know nothing but just to be sure keep it simple.
I would like to have an area of the screen to check for clicks but i don't know how?
How can i define an area to check for mouse clicks?
I know how to check one point but how do i do an area.
By point i mean like this:
To be more accurate i want to make a button.
I would like to have an area of the screen to check for clicks but i don't know how?
How can i define an area to check for mouse clicks?
I know how to check one point but how do i do an area.
By point i mean like this:
while true do
event, button, x, y = os.pullEvent(mouse_click)
if x == 1 and y == 1 then
print("Hello World")
end
To be more accurate i want to make a button.