Rex's plugins for Construct2
  • Home
  • Map
  • Tutorial/Templates
  • News
  • About

rex_time_awayL

Plugin, ACE table, Discussion thread
Dependence: None


Introduction
Get elapsed interval of turned off game from local storage.

Usage
Sample capx

Start timer
Call "Action:Start" to start a timer by recording current time-stamp saved in local storage by "Key" parameter.
Writing action would be started after previous writing actions had been done.

Get escaped time
Call
"Action:Get" to get timer status from local storage. Or uses "Action:Get or start"
to start the timer if this timer is not found in local storage.
"Condition:On get timer" will be triggered when get timer status back. The elapsed time could be read by
"Expression:ElapsedTime", in seconds.

Remove timer
Call "Action:Remove" to remove a timer.
Pause or resume timer
Sample capx
Call "Action:Pause" or "Action:Resume" to pause or resume the timer.

Compare with timer in time away plugin
Time away plugin saves time-stamp at webstorage and it needs to put official webstorage plugin into project
.
This plugin saves time-stamp in local storage without official local storage plugin.

Create a free web site with Weebly
  • Home
  • Map
  • Tutorial/Templates
  • News
  • About