Jump to content
Sign in to follow this  
dexxa

click on an area of pixel

Recommended Posts

dexxa

i think we have the ispressed functino to dectect if a key is pressed. is there a isclicked function to detect if an area of pixel is clicked. wut i mean is like lets say i make a gui with a picture in it. if i click on the picture, the program would know that i did and do other stuff, like highlight the picture or something. is this possible? if yes how do i do it?

Share this post


Link to post
Share on other sites
tuape

Hint:

IsPressed (check if left/right mouse key is pressed)

+

If true, compare mouse coordinates to area you are interested in.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×