Countdown Timer Won't Reset

Get help using Construct 2

Post » Sat Jul 22, 2017 10:05 pm

I'm working on a project where after you focus on a particular block enemy in lay, you then zoom in on that enemy and can attack it for a limited amount of time. For some reason, I can't get my countdown timer to reset and begin its count after focusing a 2nd time. Also, the HP for the lower right block isn't registering properly.

I've tried using a global and an instance variable with a timer and I still can't get this to work. It seems like a glitch that has happened in several of my projects but I know by now that you can't declare something to be a glitch if your own events are the problem. Here's a capx file to look over: https://www.dropbox.com/s/b2a0knlj64cz1v7/BBTap%20Focus%20Test%201.3.capx?dl=0

If anyone has the solution then please let me know. Thanks.
B
223
S
125
G
8
Posts: 146
Reputation: 22,243

Post » Sun Jul 23, 2017 3:54 pm

@YoHoho

I got a bit lost in your capx and I had to redo a few things I hope you don't mind.

Try this see if it helps you:

Capx: https://www.dropbox.com/s/86ox00mcjlhpt6a/Countdown%20Timer.capx?dl=0
B
40
S
22
G
81
Posts: 297
Reputation: 44,735

Post » Sun Jul 23, 2017 6:26 pm

tarek beat me again. Posting anyway.

https://www.dropbox.com/s/y9woq2fkgn1lv ... .capx?dl=0
B
33
S
18
G
28
Posts: 2,493
Reputation: 20,950

Post » Mon Jul 24, 2017 11:46 am

[quote="99Instances2Go"]tarek beat me again lol :D :D

Nice Capx @99Instances2Go Top Class as always 8-)
B
40
S
22
G
81
Posts: 297
Reputation: 44,735

Post » Mon Jul 24, 2017 8:07 pm

Wow. I actually got some assistance in such a short time!

Both .capx's actually work very well and are pretty much what I was trying to do (and still can't figure out why it wasn't working before). 99Instances2Go's .capx is the one that really racks my brain. How are the events with the 'blank' conditions even working?

I hope I can easily make some adjustments so that I can get the builds to work the way I want. I started this project over a year ago so that's why it wasn't very organized. After all of this time I went back to it and started to build upon it again. Thanks to the both of you!
B
223
S
125
G
8
Posts: 146
Reputation: 22,243

Post » Mon Jul 24, 2017 9:10 pm

Timing for Variables is tricky indeed, sometimes I get confused, but we have to have persistence.
Huemerson
B
24
S
18
G
22
Posts: 114
Reputation: 18,474


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 19 guests