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

rex_timeline

Plugin, ACE table, Discussion thread
Dependence: official function plugin, or rex_function2 plugin


Introduction
Execute function when time-out. This plugin is also a base plugin for my other timer-like plugins.

Usage
Sample capx
Step of starting a timer
  1. Call "Action:Create timer" first, assign callback name and parameters, the callback name is a function name defined at official function plugin, or rex_function2 plugin.
  2. Then call "Action:Start" to start the timer. Parameter "repeat count" to 0 is repeating infinity.
  3. When time-out, it will trigger the callback (function).
There are 3 ways to push the timeline to go forward by selected "Game time" in properties table.
  1. "Game time" to "Yes". Go forward with game time. It will be affect by timescale setting.
  2. "Game time" to "No". Go forward with "Action:Push timeline forward". (Sample capx)
  3. "Game time" to "Real-time". Go forward with real-time. The timeline will not be stopped if game pause by timescale to 0.
Callback object
Sample capx
Set
callback object to
official function plugin, or rex_function2 plugin by "Action:Setup callback", if these two objects are placed in project.

More samples
Revive, supported official save/load.

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