Get (X, Y) coordinates of mouse clicks

For questions about using Classic.

Post » Mon Dec 05, 2011 8:59 pm

Is there a way to get the (X,Y) coordinates of the position where the mouse was clicked?
B
5
S
1
G
3
Posts: 59
Reputation: 993

Post » Mon Dec 05, 2011 9:01 pm

System expressions MouseX and MouseY, I believe.
B
62
S
21
G
12
Posts: 1,910
Reputation: 13,155

Post » Mon Dec 05, 2011 9:38 pm

yeah on left button clicked
mousex, and mousey

also, if you're zoomed in or scrolled on layers separate from other layers you can do mousex(layer name or number),
mousey(layer name or number)
Spriter Dev
B
87
S
21
G
12
Posts: 3,240
Reputation: 16,461

Post » Mon Dec 05, 2011 11:34 pm

I see. Thanks for the replies.
B
5
S
1
G
3
Posts: 59
Reputation: 993


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 3 guests