Progress Bar in Lock picking

Get help using Construct 2

Post » Thu Apr 06, 2017 1:16 pm

Hi, I started a couple of weeks ago and am making a stealth/thief game.

I'm trying to use the progress bar to show lock picking in progress, but when the "E" button is released it resets if not finished.

The desired effect is achieved, the door opens after 3 seconds of "E" being held down, but the bar flashes in and out of existence not progress and finally diassapearing after the 3 seconds time out. If there is a non-complicated solution to this please tell me, I would appreciate it.
B
3
Posts: 3
Reputation: 181

Post » Thu Apr 06, 2017 2:28 pm

Use a timer behavior. Start on each key pressed, stop and reset on e key released. On timer completed, success.

Use timer expressions to represent the time remaining if you want.
Mistakes were made.
B
51
S
25
G
107
Posts: 1,581
Reputation: 60,458

Post » Thu Apr 06, 2017 4:05 pm

What event do I need to use to make the timer reset?
B
3
Posts: 3
Reputation: 181

Post » Thu Apr 06, 2017 4:12 pm

Reset happens implicitly - if you stop the timer, it won't trigger the on timer condition. When you start the timer, it will be at whatever time you set it for.
Mistakes were made.
B
51
S
25
G
107
Posts: 1,581
Reputation: 60,458

Post » Thu Apr 06, 2017 4:19 pm

Thanks
B
3
Posts: 3
Reputation: 181


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 22 guests