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

rex_parse_curTime

Plugin, ACE table, Discussion thread
Dependence:
rex_parse_initialize

Introduction
Get current time from parse server. It needs upload a function on cloud code.

Usage

Sample capx
Prepare
Add 
rex_parse_initialize to set api id and javascript key.
Cloud code
Append and update these code on parse cloud.

Reference: cloud code



Get current timestamp
Call "
Action:Get current time" to get current timestamp from parse server.
"
Condition:On get current time" will be triggered while get timestamp, otherwise "Condition:On get current time error" will be triggered.
Get timestamp result by "
Expression:LastTimestamp" under "Condition:On get current time".

Compare with rex_parse_timer
rex_parse_timer plugin also could get current server timestamp back. It needs a table to store timers, and 2 requests if not cache the timerID.
This plugin only could get
current server timestamp directly, without stored any item, and  cost 1 request.

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