How do I add mouse leave object event?

Get help using Construct 2

Post » Sun Apr 12, 2015 7:36 am

How do I add mouse leave object event?
B
13
S
2
Posts: 95
Reputation: 861

Post » Sun Apr 12, 2015 8:27 am

I guess you want to know when the mouse-pointer is no longer overlapping an object.

One way would be to give the object an instance (boolean) variable

mouse is over object - set boolean to true

mouse is not over object
object boolean is true
- perform actions
- set boolean to false
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Sun Apr 12, 2015 9:19 am

you could use a tiny object and set its position to Mouse.X and Mouse.Y every tick..
use "is on screen" to check it
"If you want to move a mountain tomorrow, you should start by lifting stones today."
B
64
S
14
G
3
Posts: 292
Reputation: 7,188


Return to How do I....?

Who is online

Users browsing this forum: Cubeeo and 6 guests