How do I Bound mouse to layout

Get help using Construct 2

Post » Sat Nov 15, 2014 11:02 pm

Hi, i have some events driven by the mouse position. When you play the game , and you drag your mouse outside the layout window , all events driven by mouse continue to progress. How to bound the mouse movement to the layout?
B
11
S
3
G
1
Posts: 419
Reputation: 1,782

Post » Sun Nov 16, 2014 10:09 am

You could use clamp to constrain the x and y positions. See the attached capx.
You do not have the required permissions to view the files attached to this post.
composer - multimedia artist
www.eli0s.com/en/
B
69
S
26
G
5
Posts: 1,146
Reputation: 9,829

Post » Sun Nov 16, 2014 10:36 am

great thanks
B
11
S
3
G
1
Posts: 419
Reputation: 1,782

Post » Sun Nov 16, 2014 11:37 am

You are welcome
composer - multimedia artist
www.eli0s.com/en/
B
69
S
26
G
5
Posts: 1,146
Reputation: 9,829

Post » Sun Nov 16, 2014 10:43 pm

Problem remains

Plz , download this capx and try to run it in node webkit preview. Then move the mouse out of the screen. :-/
You do not have the required permissions to view the files attached to this post.
B
11
S
3
G
1
Posts: 419
Reputation: 1,782

Post » Wed Nov 19, 2014 8:33 pm

Again, you need to use clamp for the rest of the events.
You do not have the required permissions to view the files attached to this post.
composer - multimedia artist
www.eli0s.com/en/
B
69
S
26
G
5
Posts: 1,146
Reputation: 9,829


Return to How do I....?

Who is online

Users browsing this forum: Yahoo [Bot] and 8 guests