Categories > Timer > rex_timeline

Introduction

Run function when time-out. It is also a base plugin for my timer-related plugins or behaviors.

Links


Categories > Timer > rex_timelineIntroductionLinksDependenceUsageTimelineTimerMore samples

Dependence

Usage

Timeline


Timer

TimerAction:Start ||Action:ResumeAction:Stop ||Action:PauseEvery tickYesNoYesNoIdleRunTimeoutAction:Create timerFunction Condition:On functionRepeat ||Action:Start ||Action:Start triggered timer

Sample capx

  1. Action:Create timer, to create a timer and its callback

  1. Action:Start

    • Parameter Repeat : restart timer repeatedly. Set 0 to repeat timer infinity
  2. Every tick

    • Time

      • Expression:TimerDelayTime
      • Expression:TimerRemainder, Expression:TimerRemainderPercent
      • Expression:TimerElapsed. Expression:TimerElapsedPercent
    • Timer control

      • Action:Pause, Action:Resume
      • Action:Stop
      • Condition:Is timer running
  3. Timeout

    • Trigger Condition:On function of callback object

      • Expression:TriggeredTimerName
      • Action:Start triggered timer
      • Action:Delete triggered timer
      • Action:Set parameters, to change parameters of callback for next invoking

More samples