Mine Clicker

Show us your completed creations made in Construct 2

Post » Fri Nov 08, 2013 2:21 pm

Hi guys!

I was testing the famous Cookie Clicker concept with Construct 2.

So, with my prototype, you can't go really far playing it. I mean, after a few times, you're so rich that it does'nt make sens to play (because there's only 4 items in the shop). But that's not the point in this.

My point is, loosing focus on my 'game'. If you hide the tab ou minimize the browser, then, numbers are not growing. Letting the game playing itself on the background is then not working, the point of this kind of game would be then not 'doable' with Construct 2.

Click on image:


Am I wrong on this?
Image
B
14
S
4
G
2
Posts: 20
Reputation: 2,223

Post » Fri Nov 08, 2013 8:46 pm

@Zav maybe you can get the system time (wallclocktime) when the game is out of focus and when becomes again on focus calculate the amount of credits generated and update it.
Browser.On suspended and Browser. On resumed
B
84
S
21
G
23
Posts: 521
Reputation: 18,789

Post » Sat Nov 09, 2013 9:22 am

@Cipriux thanks a lot, that was a genius trick :D
Some friend helped me formulating it, but it's working now.

Version 1.0.0.3:


Here's what I wrote:
Image
B
14
S
4
G
2
Posts: 20
Reputation: 2,223

Post » Sat Nov 09, 2013 10:01 am

@Zav The problem with C2 is that for a mobile game does not allow the game to run in the background but it allows it to pause. From what i know, Android OS can close without warning the game if the RAM is too tight. So make sure to experiment and save the time to "disk"
B
84
S
21
G
23
Posts: 521
Reputation: 18,789

Post » Sat Nov 09, 2013 11:44 am

@Cipriux ok, I'm noting it somewhere. For now my concern was only about web browsing on PC, but you're right about testing it for mobile. Thanks again.
Image
B
14
S
4
G
2
Posts: 20
Reputation: 2,223


Return to Completed Creations

Who is online

Users browsing this forum: No registered users and 4 guests