How do I create background timers on apps?

Get help using Construct 2

Post » Mon Aug 17, 2015 2:59 pm

I need to create a simple 24 hour or so background timer that runs when the app (android and ios) is not running, is there a simple way to do this with or better yet; without the use of a web host server?

A feature similar to MMORPG app games like Clash of Clans when building/upgrading buildings is the goal.

I have been trying these event references from "stctr":

User connection disconnects -> register server date 22/10/2015 12:55 as time for user xxx
User connection connects -> register server date 23/10/2015 13:33 as time2 for user xxx
Compare time & time2.
Your answer.

But so far am really confused with which objects and plugins to use and how to implement the server. :?

Thanks for all your time and help! :)
B
7
S
1
Posts: 17
Reputation: 495

Post » Mon Aug 17, 2015 9:55 pm

You can't do it without a web server. Also, we are already way ahead of you building exactly such a game. (See our website in my signature)
https://www.ravenheart.ca/home
I don't check the forums much anymore, but I will receive an email for PMs.

"Someone once told me I bite off more than I can chew...

I told them I would rather choke on greatness than nibble on mediocrity."
B
22
S
6
G
1
Posts: 1,418
Reputation: 4,830

Post » Tue Aug 18, 2015 12:53 am

gumshoe2029 wrote:You can't do it without a web server. Also, we are already way ahead of you building exactly such a game. (See our website in my signature)


Awesome game with good potential; FATE. You didn't make this game with Construct 2 (I assume). What program was used to create it?

and How would you implement the background timer in Construct 2 like how this post had asked?
-question was not answered in your reply post.... :?:
B
7
S
1
Posts: 17
Reputation: 495

Post » Tue Aug 18, 2015 5:22 pm

The front end (the screenshots only show the front end) is completely in Construct2 and the back-end is in Java.

For a pure Construct timer, I would use @rexrainbow 's Date plugin.

However, keep in mind that anyone can change the date and time produced by this plugin simply by fiddling with their system clock, since it draws from the local system time clock. If you want a timer that cannot be tampered with, you must use a server.
https://www.ravenheart.ca/home
I don't check the forums much anymore, but I will receive an email for PMs.

"Someone once told me I bite off more than I can chew...

I told them I would rather choke on greatness than nibble on mediocrity."
B
22
S
6
G
1
Posts: 1,418
Reputation: 4,830

Post » Wed Aug 19, 2015 4:19 am

gumshoe2029 wrote:The front end (the screenshots only show the front end) is completely in Construct2 and the back-end is in Java.

For a pure Construct timer, I would use @rexrainbow 's Date plugin.

However, keep in mind that anyone can change the date and time produced by this plugin simply by fiddling with their system clock, since it draws from the local system time clock. If you want a timer that cannot be tampered with, you must use a server.


Awesome, I hope to form a group and build bigger projects like FATE in the future.
Thanks for the insight!

I will try rex_date plugin but is there a plugin or way to implement one that cannot be tampered with?

Thanks for your help! :D
B
7
S
1
Posts: 17
Reputation: 495

Post » Wed Aug 19, 2015 2:45 pm

Well, if you are available, we are looking for people to fill out our team still. Obviously, we can't pay you yet, but we are closing on Alpha 1 which will mark the launch of our Kickstarter and some working capital. Feel free to send me a PM and we can discuss further.

To answer your question, no, it is not possible to use anything on the client side (anything in Construct 2) that cannot be tampered with, since all of it resides on the user's computer.
https://www.ravenheart.ca/home
I don't check the forums much anymore, but I will receive an email for PMs.

"Someone once told me I bite off more than I can chew...

I told them I would rather choke on greatness than nibble on mediocrity."
B
22
S
6
G
1
Posts: 1,418
Reputation: 4,830

Post » Wed Aug 19, 2015 3:54 pm

gumshoe2029 wrote:To answer your question, no, it is not possible to use anything on the client side (anything in Construct 2) that cannot be tampered with, since all of it resides on the user's computer.


Is there a plugin or method with the use of a web server?
B
7
S
1
Posts: 17
Reputation: 495

Post » Wed Aug 19, 2015 10:52 pm

I'll explain further in our private communications.
https://www.ravenheart.ca/home
I don't check the forums much anymore, but I will receive an email for PMs.

"Someone once told me I bite off more than I can chew...

I told them I would rather choke on greatness than nibble on mediocrity."
B
22
S
6
G
1
Posts: 1,418
Reputation: 4,830


Return to How do I....?

Who is online

Users browsing this forum: Blendi1223, gskunk, richcoz81, tarek2, Wartexnik and 48 guests