[Plugin] System date and time

Post your completed addons to share with the community

Post » Sat Jul 11, 2015 9:03 am

@Ximon

It could get time by name in expression ElapsedTime, in my sample capx.
You might provide a simple capx for debugging.
B
97
S
22
G
177
Posts: 4,111
Reputation: 103,525

Post » Sun Jul 12, 2015 7:18 pm

@rexrainbow

Alright, thanks so much. Will check out your sample.
B
6
Posts: 10
Reputation: 275

Post » Sat Jul 18, 2015 12:39 am

Is it possible at all to compare 2 dates i want to have game modes that will only be open to play between 2 dates is this possible with the plugin if so how can i do it ?
B
31
S
7
Posts: 23
Reputation: 1,545

Post » Sat Jul 18, 2015 1:05 am

@TMsimonW

Use time away L plugin or time away plugin to get elapsed interval of turned off game. Then compare this elapsed interval.
B
97
S
22
G
177
Posts: 4,111
Reputation: 103,525

Post » Wed Jul 29, 2015 12:51 pm

@rexrainbow Awesome plugin, but I encountered one inaccuracy during its use (while year, month, minutes, seconds are working perfectly, I get wrong results when trying to return the current "Date.Day"... while I should be getting 29th day I'm getting day 3 instead.

I confirmed this on ipad mini as well (same day 3 of July instead of 29th).
B
12
S
3
G
1
Posts: 67
Reputation: 965

Post » Wed Jul 29, 2015 3:17 pm

@striimix

You might try expression:Date.Date , since Date.Day is day in a week i.e. 3 is Wednesday.
B
97
S
22
G
177
Posts: 4,111
Reputation: 103,525

Post » Wed Jul 29, 2015 8:40 pm

rexrainbow wrote:@striimix

You might try expression:Date.Date , since Date.Day is day in a week i.e. 3 is Wednesday.

Ahh, of course - thanks!
B
12
S
3
G
1
Posts: 67
Reputation: 965

Post » Sat Aug 22, 2015 3:12 pm

Thanks Rex! Very useful! Thanks for the hardwork. Anyway, I wanted to make more use if the time away plugin for example: After the user runs out of ammo, they need to wait for 10 hours to be able to automatically add ammo to the game. Is this possible? I would need your help. Thanks so much!
B
5
Posts: 2
Reputation: 245

Post » Mon Sep 14, 2015 12:59 am

Hey @rexrainbow I have a small question about "time away L plugin". Is there a way to remove unused timers from local storage?
My events are quite simple, they goes like this:

+Variable = 1
++every 1 second -> TimeAwayL: Start timer "xxx"

+Else
+Trigger once - > "stop timer" ???

When Variable is not equal to 1 I don't need timers to save anything anymore, but I can't get rid of them.
Been trying to use LocalStorage: Remove item "xxx" but it's not working, Everytime I run the project I can see saved timer items and values in the local storage
ImageImageImageImage
B
140
S
58
G
36
Posts: 2,547
Reputation: 31,170

Post » Mon Sep 14, 2015 3:43 am

Update

rex_timeaway , rex_timeawayL plugin: add action: remove timer


@shinkan
Try this new one.
B
97
S
22
G
177
Posts: 4,111
Reputation: 103,525

PreviousNext

Return to Completed Addons

Who is online

Users browsing this forum: No registered users and 1 guest