How Can I Check If Player Plays Everyday For X Straight Days

Get help using Construct 2

Post » Thu Feb 09, 2017 4:56 pm

I would like to add a reward if the player plays for X amount of days.

How can I add this to my game?


Thanks for any help with this.
B
38
S
18
G
19
Posts: 664
Reputation: 14,112

Post » Thu Feb 09, 2017 5:21 pm

You would create some saves slots in localstorage.
You would need a date plug to check what the current one was.
First check what day it was
One slot to check if they had already opened the game that day: If date= slotdate, do nothing, else add 1 to another slot slotcount
Then remember to check slotcount, and reset it after 10.
Image ImageImage
B
171
S
50
G
179
Posts: 8,385
Reputation: 113,464

Post » Thu Feb 09, 2017 5:36 pm

The above is sound which is why I can make my joke now. Check if the player looks really knackered, if so then player has played enough days straight on the game.
B
47
S
17
G
81
Posts: 2,225
Reputation: 48,097

Post » Fri Feb 10, 2017 1:16 am

plinkie wrote:The above is sound which is why I can make my joke now. Check if the player looks really knackered, if so then player has played enough days straight on the game.


This would cause a bug in Asia because people there can play for days straight without looking tired.

Source:
http://www.dailymail.co.uk/news/peoples ... years.html

http://disposableworkers.com/?page_id=37

https://www.vice.com/en_us/article/game ... -cafes-456
Image Image Image
B
32
S
12
G
27
Posts: 761
Reputation: 17,244

Post » Fri Feb 10, 2017 9:01 am

MPPlantOfficial wrote:
plinkie wrote:The above is sound which is why I can make my joke now. Check if the player looks really knackered, if so then player has played enough days straight on the game.


This would cause a bug in Asia because people there can play for days straight without looking tired.

Source:
http://www.dailymail.co.uk/news/peoples ... years.html

http://disposableworkers.com/?page_id=37

https://www.vice.com/en_us/article/game ... -cafes-456


Haha, I did read about someone in Asia dying after playing Starcraft for too long in an internet cafe, woops.
B
47
S
17
G
81
Posts: 2,225
Reputation: 48,097

Post » Fri Feb 10, 2017 9:44 am

MPPlantOfficial wrote:
plinkie wrote:The above is sound which is why I can make my joke now. Check if the player looks really knackered, if so then player has played enough days straight on the game.


This would cause a bug in Asia because people there can play for days straight without looking tired.

Source:
http://www.dailymail.co.uk/news/peoples ... years.html

http://disposableworkers.com/?page_id=37

https://www.vice.com/en_us/article/game ... -cafes-456


Wow, that's extreme! Suddenly my all-night gaming binges at university don't seem so bad :D

Although, I vote the whole world follows Wikipedia's rule and never uses the Daily Mail as a source given its unreliability and how often it makes nonsense up. The only time you're allowed to use a Daily Mail article as a source on Wikipedia is if it's to point out how awful Daily Mail articles tend to be :P
B
15
S
8
G
7
Posts: 255
Reputation: 5,368

Post » Fri Feb 10, 2017 2:12 pm

@ -Silver- @ plinkie

Just A Bit
B
38
S
18
G
19
Posts: 664
Reputation: 14,112


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 21 guests