Mouse out event

Get help using Construct 2

Post » Wed Feb 20, 2013 5:41 pm

I found "cursor is over object" event but can't find Mouse out event from object... Please help me if I missed the event or really there is no mouse out event?
Thanks.
B
7
Posts: 9
Reputation: 735

Post » Wed Feb 20, 2013 6:17 pm

I don't think there is any, but you can simulate it by using a boolean instance variable and 2 events.

- Cursor is over object : Set object's boolean to true

- Object's boolean is true
+ NOT Cursor is over object : <insert your "on mouse out" actions (and set boolean to false)>
Magistross2013-02-20 18:17:57
B
46
S
17
G
18
Posts: 847
Reputation: 13,802

Post » Wed Feb 20, 2013 6:24 pm

Or
Mouse: NOT Cursor is over object
System: Trigger Once
   -> Actions
B
54
S
28
G
18
Posts: 1,520
Reputation: 25,020

Post » Wed Feb 20, 2013 6:30 pm

@ramones

The only problem with that is the triggering of the event before any mouse over. Could be meaningless, but it depends on what charusoft is trying to accomplish.
B
46
S
17
G
18
Posts: 847
Reputation: 13,802

Post » Wed Feb 20, 2013 6:59 pm

Thanks. I found another option.... Inverting "cursor is over object" its works fine Mouse out event.
B
7
Posts: 9
Reputation: 735


Return to How do I....?

Who is online

Users browsing this forum: h1k3, LeFuji and 18 guests