Mouse outside layout

New releases and general discussions.

Post » Sat Jan 17, 2009 8:47 pm

I've noticed runtimes keep focus on the mouse even if its not within the window, so I'd like to suggest a mouse/keyboard condition like mouse is outside layout.
I know you could probably add a detection object to follow mouse, but that seems like a wasted effort.
Or perhaps even a system property like keep focus.
Image Image
B
161
S
48
G
90
Posts: 7,354
Reputation: 66,763

Post » Sun Jan 18, 2009 9:21 am

Conditions! Check if mouse X or Y is greater than right and bottom edge (layout size, such as 640x400) or if it is smaller than left and top edge (0). If the condition is met, you can execute an event to make the mouse enrage and swallow the user whole. Or simply keep focus on the edge where mouse left the layout and wait until it comes back into the game.

But I think an enraged mouse is fun.
B
62
S
21
G
12
Posts: 1,910
Reputation: 13,155

Post » Sun Jan 18, 2009 6:46 pm

Enraged? :|
B
52
S
7
G
6
Posts: 1,945
Reputation: 7,610

Post » Sun Jan 18, 2009 7:30 pm

sounds fun to me!
B
3
S
2
G
4
Posts: 271
Reputation: 2,017


Return to Construct Classic Discussion

Who is online

Users browsing this forum: No registered users and 5 guests