Mouse click is held down over object, click more than once?

Just started using Construct 2? Post your questions here

Post » Sat Dec 12, 2015 7:43 am

I have a Menu item with 100 objects and I want to remove one object with every mouse click but how can I make it so if the mouse click is held down for 2 seconds it will start to automatically count down without having to keep clicking?
B
7
S
1
Posts: 51
Reputation: 550

Post » Sat Dec 12, 2015 12:29 pm

I'm not sure what exactly you want, but would something like starting a timer (timer-behaviour) work..

On object clicked
> start timer for 2 seconds

on timer
> set global variable to 1

on mouse button released
> stop timer
> set global variable to 0

global variable is 1
> count down (I'm not sure what exactly you mean by automatically counting down)
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


Return to Beginner's Questions

Who is online

Users browsing this forum: No registered users and 2 guests