Reset countdown time and everything

Get help using Construct 2

Post » Sat Apr 06, 2013 8:32 pm

I want to reset the "countdown time" and everything when the game switch back to "main" and play again but not successful. Please kindly help with the attached capx.

game03_sample.capx

Thank you very much!!!mike2013-04-06 20:33:46
B
5
S
1
G
1
Posts: 10
Reputation: 1,184

Post » Sun Apr 07, 2013 8:03 am

[QUOTE=mike] I want to reset the "countdown time" and everything when the game switch back to "main" and play again but not successful. Please kindly help with the attached capx.

game03_sample.capx

Thank you very much!!![/QUOTE]

Hey I was wondering if you knew about the "reset global variables command"? You could have an event such as "when game is over", then "reset global variables".

If your confused about what I just wrote, then I can help you edit your capx file if you want
B
18
S
4
G
3
Posts: 436
Reputation: 4,801

Post » Sun Apr 07, 2013 8:06 am

[QUOTE=mike] I want to reset the "countdown time" and everything when the game switch back to "main" and play again but not successful. Please kindly help with the attached capx.

game03_sample.capx

Thank you very much!!![/QUOTE]

I decided to fix your capx file instead, check it out and tell me if this is what you wanted

Link:
https://www.dropbox.com/s/9yg86nzlzqvkew6/frogGame.capx
B
18
S
4
G
3
Posts: 436
Reputation: 4,801

Post » Sun Apr 07, 2013 8:17 am

I didn't fix the time yet, but if you want I can help you with it once I go over your capx file unless you have already figured it out. If not, then post it here and I'll try to help youretrodude2013-04-07 08:19:13
B
18
S
4
G
3
Posts: 436
Reputation: 4,801

Post » Sun Apr 07, 2013 11:42 am

Hi Retrodude,

Thanks for your great help by inserting a line "Reset global variables to default" at the very beginning. However I would like to have the following responses but still failed ... poor me :(

1. One "Home" page (click on "Start" button) will go to "Level One" page, and the timer will start to count down from 60s ...
2. When three frogs on "Level One" is eaten, I can go back "Home" page to restart the game
3. The timer should count down from 60s again (But I failed this part ...)

I have modified a bit and see the new attached file:
frogGame2.capx

Hope you can help me once again as I tried to code it for two days already :(
Thank you very much!!mike2013-04-07 11:43:47
B
5
S
1
G
1
Posts: 10
Reputation: 1,184


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 1 guest