Clock 

The Clock addon extends the game application to implement date and clock features.

It has a built-in rewards and daily rewards system and high precision and globally synced timer features.

It also has datetime converter tools for both universal and local time.

Take advantage of the high performance implementation of the Clock object, with a built-in Cheat Guard feature that protects your games from cheating users.

The Clock implements full datetime features with built-in rewards and daily rewards system, and globally synced timer features.

Features

The Clock is an addon that extends the game application to implement date and clock features.

It has a built-in rewards and daily rewards system and high precision and globally synced timer features.

It also has datetime converter tools for both universal and local time.

Take advantage of the high performance implementation of the Clock object, with a built-in Cheat Guard feature that protects your games from cheating users.

Features :

  • Full date-time feature implementations.

  • Complete Reward system.

  • Complete Daily Reward system.

  • Datetime tools and converters.

  • Easy to use and no programming required.

  • Well-supported and fully tested.

  • Cheat Guard with different guard modes.

  • UTC and Local Time support.

  • Extreme efficiency and performance algorithms.

  • High-Precision timers.

  • Safe mode for debugging.

  • C3 Debugger support.

  • Construct 3 editor support.

  • Construct 3 runtime.

  • Construct 3 worker.

  • ES6 API features. 

Actions, Conditions & Expressions

Actions

Daily Reward :

  • Create Daily Reward - Create a daily reward, where a user can claim a reward everyday for a specified duration.

    • Name - Enter here the name of the daily reward.

    • Duration - The duration, either in a week or month.

    • Clamp - If checked, the DaysPassed and WeeksPassed expressions will be clamped to the duration.

  • Reset Daily Reward - Reset the internal daily reward clock timer.

    • Name - Enter here the name of the daily reward.

 

  • Stop Daily Reward - Stop the internal daily reward clock timer.

    • Name - Enter here the name of the daily reward.


Reward :

  • Create Advanced Reward - Create an advanced multiple-time reward.

    • Name - Enter here the name of the reward.

    • Duration - The duration in number.

    • Duration Type - The duration type to use for the duration parameter.

    • Type - The amount of times the reward can be claimed and reset, either once or unlimited.

  • Create Reward - Create a basic one-time reward.

    • Name - Enter here the name of the reward.

    • Duration - The duration in number.

    • Duration Type - The duration type to use for the duration parameter.

  • Reset Reward - Reset the internal reward clock timer.

    • Name - Enter here the name of the reward.

  • Stop Reward - Stop the internal reward clock timer.

    • Name - Enter here the name of the reward.

 


Timer :

  • Stop Timer - Stop a clock timer.

    • Tag - Enter the name of the clock timer to stop.

  • Start Timer - Start a one-off or regular clock timer.

    • Duration - Enter the time in seconds after which to trigger 'On Timer'.

    • Type - Whether to run this clock timer once only, or regularly until cancelled.

    • Tag - Enter a name to identify this timer.

  • Start Timer On - Start a one-off or regular clock timer.

    • Datetime - Enter the elapsed time since the Unix epoch, in milliseconds.

    • Duration - Enter the time in seconds after which to trigger 'On Timer'.

    • Type - Whether to run this clock timer once only, or regularly until cancelled.

    • Tag - Enter a name to identify this timer.

  • Start Timer In - Start a one-off or regular clock timer.

    • Fusetime - Seconds until the timer starts.

    • Duration - Enter the time in seconds after which to trigger 'On Timer'.

    • Type - Whether to run this clock timer once only, or regularly until cancelled.

    • Tag - Enter a name to identify this timer.


General :

  • Set Listener State - By default, rewards and daily rewards are claimed manually. Although, through this event, you can fire completed rewards and daily rewards.

    • Auto Fire - If checked, the application will auto-fire reward completions.

  • Claim Rewards - Manually claim rewards or daily rewards.

    • Type - The reward type to claim, either reward or daily reward.

Conditions

Daily Reward :

  • On Daily Rewarded - Trigger fires when a daily reward is claimed.

    • Name - The name of the daily reward.

  • On Any Daily Rewarded - Trigger fires when any daily reward is claimed.

Reward :

  • On Any Rewarded - Trigger fires when any reward is claimed.

  • On Rewarded - Trigger fires when a reward is claimed.

    • Name - The name of the reward.

 


Timer :

  • Is Timer Running - True if a clock timer with the given tag is currently running.

    • Tag - Enter the name of the clock timer.

  • Is Timer Waiting - True if a delayed clock timer with the given tag is currently awaiting its fire time to start.

    • Tag - Enter the name of the clock timer.

  • On Timer - Triggered when a clock timer has elapsed.

    • Tag - Enter the name of the clock timer.

 


General :

  • Is Initialized - Check if the Clock object is ready for use.

  • On Cheated - Trigger fires when the internal clock for the rewards and daily rewards, is not in sync with the device.

Expressions

Daily Reward :

  • DaysPassed - The number of days already passed and claimed, of the specified daily reward.

    • Name - The name of the daily reward.

  • WeeksPassed - The number of weeks already passed and claimed, of the specified daily reward.

    • Name - The name of the daily reward.

  • DayEnd - The exptected datetime (milliseconds) the daily reward is ready to be claimed. This is for each day.

    • Name - The name of the daily reward.

  • DayStart - The datetime (milliseconds) the daily reward started. This is for each day.

    • Name - The name of the daily reward.

  • DayElapsedTime - The elapsed time since the daily reward's current day started, in datetime (milliseconds).

    • Name - The name of the reward.

  • DailyName - The name of the current daily reward.

  • DailyStart - The datetime (milliseconds) the daily reward started or reset.

    • Name - The name of the daily reward.

  • DailyCountdown - The remaining time before the next daily reward claim. Format: "Secs,Minutes,Hours,Days".

    • Name - The name of the daily reward.

 


Reward :

  • RewardElapsedTime - The elapsed time since the reward clock timer started, in datetime (milliseconds).

    • Name - The name of the reward.

  • RewardEnd - The exptected datetime (milliseconds) the reward is ready to be claimed.

    • Name - The name of the reward.

  • RewardStart - The datetime (milliseconds) the reward started or reset.

    • Name - The name of the reward.

  • RewardName - The name of the current reward.

  • RewardCountdown - The remaining time before the next reward claim. Format: "Secs,Minutes,Hours,Days".

    • Name - The name of the reward.

 


Timer :

  • StartTime - The datetime (milliseconds) when the clock timer first started.

    • Tag - The name of the clock timer.

  • CurrentTime - Seconds since the last 'On Timer' event.

    • Tag - The name of the clock timer.

  • TotalTime - Seconds since the clock timer was started.

    • Tag - The name of the clock timer.

  • Duration - Duration in seconds of a clock timer that is running.

    • Tag - The name of the clock timer.

 


General :

  • DateFromParams - The current datetime, from input. Format: (Year, Month, Day, Hour, Minute, Second, Millisecond).

  • DateNow - The datetime now, in milliseconds.

  • DateFromString - The current datetime, from a date string.

    • Date - The date string to parse into its datetime.

 


Local DateTime :

  • GetDate - Returns the day of the month (1–31) for the specified date according to local time.

    • Date - The datetime in milliseconds, or the date string.

  • GetDay - Returns the day of the week (0–6) for the specified date according to local time.

    • Date - The datetime in milliseconds, or the date string.

  • GetFullYear - Returns the year (4 digits for 4-digit years) of the specified date according to local time.

    • Date - The datetime in milliseconds, or the date string.

  • GetHours - Returns the hour (0–23) in the specified date according to local time.

    • Date - The datetime in milliseconds, or the date string.

  • GetMilliseconds - Returns the milliseconds (0–999) in the specified date according to local time.

    • Date - The datetime in milliseconds, or the date string.

  • GetMinutes - Returns the minutes (0–59) in the specified date according to local time.

    • Date - The datetime in milliseconds, or the date string.

  • GetMonth - Returns the month (0–11) in the specified date according to local time.

    • Date - The datetime in milliseconds, or the date string.

  • GetSeconds - Returns the seconds (0–59) in the specified date according to local time.

    • Date - The datetime in milliseconds, or the date string.

 


DateTime Tools :

  • GetTime - Returns the numeric value of the specified date as the number of milliseconds since January 1, 1970, 00:00:00 UTC. (Negative values are returned for prior times).

    • Date - The datetime in milliseconds, or the date string.

  • GetTimezoneOffset - Returns the time-zone offset in minutes for the current locale.

    • Date - The datetime in milliseconds, or the date string.

 


UTC DateTime :

  • UTCDate - Returns the day (date) of the month (1–31) in the specified date according to universal time.

    • Date - The datetime in milliseconds, or the date string.

  • UTCDay - Returns the day of the week (0–6) in the specified date according to universal time.

    • Date - The datetime in milliseconds, or the date string.

  • UTCFullYear - Returns the year (4 digits for 4-digit years) in the specified date according to universal time.

    • Date - The datetime in milliseconds, or the date string.

  • UTCHours - Returns the hours (0–23) in the specified date according to universal time.

    • Date - The datetime in milliseconds, or the date string.

  • UTCMilliseconds - Returns the milliseconds (0–999) in the specified date according to universal time.

    • Date - The datetime in milliseconds, or the date string.

  • UTCMinutes - Returns the minutes (0–59) in the specified date according to universal time.

    • Date - The datetime in milliseconds, or the date string.

  • UTCMonth - Returns the month (0–11) in the specified date according to universal time.

    • Date - The datetime in milliseconds, or the date string.

  • UTCSeconds - Returns the seconds (0–59) in the specified date according to universal time.

    • Date - The datetime in milliseconds, or the date string.

Properties

Configuration - The addon configuration section.

  • Debug Mode - Toggle enabled to log processes, warnings and errors into the console.


Clock - The general configuration section for the internal clock.

  • Listen Interval - The internal clock interval for listening reward completions and cheating attempts through Cheat Guard, in seconds. Limit is 1.0.


Guard - The security configuration section for the clock's reward and daily reward systems.

  • Cheat Guard - If enabled, the anti-cheat algorithms will be activated.

  • Guard Mode - Choose the reaction of the cheat guard, when it catches a user cheating.

    • Trigger Only

    • Reset Rewards

    • Destroy Rewards

  • Guard Tolerance - The number of seconds of error tolerance, for the cheat guard feature.


Danger Zone - The dangerous configuration section, only change when necessary.

  • Safe Mode - If enabled, all recorded data are cleared on every app startup. This is for debugging purposes only!

Intstructions

1. The first step is to add the Clock addon into the project.

1. The first step is to add the Clock addon into the project.

2. Setup the plugin's unique properties section.

3. The debug mode toggle enables information logs in the console.

4. The listen interval, in seconds, is the waiting duration for each checking cycle of rewards, daily rewards and the cheat guard feature. 
The lower the value, the lesser checks the device will have to do.

5. The cheat guard feature detects device date and time anomalies, and will act according to the guard mode.

6. The guard tolerance will be the acceptable time range that will be tolerated by the cheat guard. This will be the margin of error.

 

6. The Danger Zone's safe mode, if checked, clears all the clock data on startup, which will reset all rewards, daily rewards and cheat guard.


This is best used for debugging your application, but remember to turn this off during production.
This is dangerous if ran on production, the players will lose their rewards, daily rewards and cheat guard state data.

 
 
 

Feature Showcase

The Clock is an addon that extends the game application to implement date and clock features.

It has a built-in rewards and daily rewards system and high precision and globally synced timer features.

It also has datetime converter tools for both universal and local time.

 
 

Reward System

Sample Setup Project

Specifications

  • Instructions - The sample project has comments and instructions on how to use the addon and its features.

  • A.C.E. Coverage - It covers the implementation of each action, condition and expression.

  • Tips and Tricks - It provides some tips and tricks to a better use of the addon and of the event-sheet system alongside it.

Supporters

Only

Daily Reward System

Sample Setup Project

Specifications

  • Instructions - The sample project has comments and instructions on how to use the addon and its features.

  • A.C.E. Coverage - It covers the implementation of each action, condition and expression.

  • Tips and Tricks - It provides some tips and tricks to a better use of the addon and of the event-sheet system alongside it.

Supporters

Only

Global Timer

Sample Setup Project

Specifications

  • Instructions - The sample project has comments and instructions on how to use the addon and its features.

  • A.C.E. Coverage - It covers the implementation of each action, condition and expression.

  • Tips and Tricks - It provides some tips and tricks to a better use of the addon and of the event-sheet system alongside it.

Supporters

Only

Datetime Tools

Sample Setup Project

Specifications

  • Instructions - The sample project has comments and instructions on how to use the addon and its features.

  • A.C.E. Coverage - It covers the implementation of each action, condition and expression.

  • Tips and Tricks - It provides some tips and tricks to a better use of the addon and of the event-sheet system alongside it.

Supporters

Only

 

Get the tools

for your pro games!

Constuct Master Collection - Itch.io
Constuct Master Collection - Discord
Constuct Master Collection - Construct 3

© Construct Master Collection 2020 • All rights reserved

Contact Information: