How do I create a simple virtual pet timer?

Get help using Construct 2

Post » Thu Mar 20, 2014 6:09 pm

I understand all the variable settings to make a virtual pet type app, but I'm stuck on how to have the app check the users local clock/time to compare the amount of time since the last usage. I need this function to not only make the variables like hunger and happiness more realistic but to also allow a "lifespan" type counter.

I also have no idea how to save on exit.. I imagine I can make a "on browser close>save game" sort of thing happen but I haven't gotten there yet.

thank you! :D
B
12
S
4
G
2
Posts: 132
Reputation: 1,749

Post » Thu Mar 20, 2014 6:12 pm

B
17
S
4
G
3
Posts: 172
Reputation: 1,933

Post » Thu Mar 20, 2014 6:21 pm

shirokuma wrote:Try this plugin:
plugin-system-date-and-time_t63492?&hilit=date


I'll try that, thank you!

Do you know if there is a way to do it without a plugin? I've yet to try new plugins but this looks pretty solid if I can't do it with stock C2.

:D
B
12
S
4
G
2
Posts: 132
Reputation: 1,749


Return to How do I....?

Who is online

Users browsing this forum: blue visionary, OBLIVION and 15 guests