How to make an event about mouse pointer...

Get help using Construct 2

Post » Wed Jul 18, 2012 3:44 am

Hi all, i'm just wondering how to make an event about mouse pointer is not moving for 5 seconds, then some random action is triggered like blocking the game.

Also else if mouse pointer is moving, no block the game.

Im talking about if you're not playing the game, it could be inactive, the action makes pause the game or just block the game.

I hope you know what i mean.

My regards.
B
96
S
25
G
20
Posts: 3,052
Reputation: 22,638

Post » Wed Jul 18, 2012 6:52 am

this is an idea :
you can put variables like : X,Y variable and timer and when mouse.x and mouse.y = them it will subtract from the timer . if the timer = 0 it do that stuff..
the timer will reset if the x or y changed ^^
B
45
S
15
G
6
Posts: 795
Reputation: 11,935

Post » Wed Jul 18, 2012 8:49 am

Ok, let me try it.

I will let you know if it works.
B
96
S
25
G
20
Posts: 3,052
Reputation: 22,638


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 21 guests