Menu
MotorCortex Logo
MotorCortexDocs
MotorCortex LogoMotorCortex
    • GETTING STARTED
      • Installation
      • Introduction
      • Main Concepts
    • BASIC CLASSES
      • Clip
      • Group
      • Combo
    • PLUGINS
      • The MotorCortex Library
      • Discovering, Loading and Using plugins
      • Effects and Animations
      • Types of Plugins
    • EXECUTION
      • Native commands
      • Players
    • JSX
      • JSX
    • ADVANCED FEATURES
      • Clip as Incident
      • Dynamic Values
      • Selectors
      • Incident cloning
    • SOUND
      • Loading a sound
      • Audio Incidents
      • Master volume
    • EDITING
      • Adding Incidents
      • Remove Incidents
      • Move Incident
      • Resizing Incidents
      • Edit Incident’s attributes
      • Edit Incident’s properties
    • PLUGINS DEVELOPMENT
      • onGetContext
      • Mono Incident / one element, one animated attribute
      • The scratch value
      • Channeling and validation
      • Channels
      • API
      • Plugin structure
      • The MonoIncident
      • Combos
      • Create composite behaviours
      • Create your own Clips and expose them as Incidents
      • Custom Entities
      • Put sound on the game
      • Blockings
    • EXECUTION CONTROLS
      • Play / Pause
      • Set execution speed
      • Subscribe to Clip’s events
      • Subscribe to Clip’s duration changes
    • EXPORTING, REBUILDING AND CLONING
      • Clip Clone
      • Exporting
    • Appendix A
      • attributesValidationRules
        • The basics

    Set execution speed

    You can control the execution speed of the Clip via the executionSpeed property of it. executionSpeed can take positive or negative (reverse execution) numbers. The normal speed is 1.

    myClip.executionSpeed = 1; // normal execution speed
    myClip.executionSpeed = -1; // reverse execution with normal speed
    myClip.executionSpeed = 2; // two times faster execution speed
    myClip.executionSpeed = -2; // two times faster reverse execution speed
    Previous
    « Play / Pause
    Next
    Subscribe to Clip’s events »