Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Info

For an overview of Frames, click here.

This article describes the order in which the system processes frames.

...

Panel
panelIconId1f393
panelIcon:mortar_board:
panelIconText🎓
bgColor#4C9AFF

Deep Learning on Frames is found in Motive Academy. Click here to see the course this lesson is in.

Quick Links

Table of Contents

Overview

A Script can have many Frames. The order and relationship between frames Frames impact when they will be processed by the system. Frame processing happens at the speed of a computer, not that of a human. It is quite fast. Two frames Frames on the same level with no conditions Conditions appear to happen at the same time to a userlearner.

The flexibility of this system makes several types of branching possible within Storyflow.

Concepts

Processed Frame

A frame Frame is considered processed once the system has evaluated its conditionsConditions. If its conditions Conditions are false, the frame Frame is queued until:

  • The frame Frame or any parent of it on the same branch becomes deactivated.

  • The script Script which contains the frame Frame is ended.

  • The conditions Conditions on the frame Frame become true. In this case, the frame Frame will open.

Open Frame

An open frame Frame is a processed frame Frame whose conditions Conditions are true. An open frame Frame activates its resources Resources and its child frames Frames will be processed.

Child Frames

The main function of child frames Frames is to control the order in which frames Frames are processed. Frames are arranged in a tree structure. A child frame Frame will only be processed when:

  • Its parent frame Frame is open, meaning its parent has been processed and the conditions Conditions on the parent are true.

The order of a frame Frame in a given branch determines when it will be processed. For example, if frame Frame has three siblings and is listed second under their common parent, it will be processed second once the parent frame Frame is open.

Frame Conditions

Frame conditions Conditions gate resources. Frame resources Resources will activate and any child frames Frames will begin to be processed once the frame conditions Frame Conditions are true. Frame conditions Conditions will only be evaluated by the system if the frame Frame has been processed.

Processing Flow

When a script Script is launched, the system script Script processor will begin processing the frames Frames in the tree starting from the root frameFrame. Each script Script has a single root frame called Main Frame. That frame Frame has a tree of 0-n child frames Frames below it. The script Script processor processes each frame Frame as follows:

  1. Evaluate the conditionsConditions. If the conditions Conditions evaluate to true or no conditions Conditions are present, it is considered to be met

  2. If the conditions are met

    1. Activate frame resources

    2. Process any child frames

  3. If the conditions are not met

    1. Queue until the conditions are met and move to the next frame on the same level

...