Incari Studio
2.0
2.0
  • Incari Studio Documentation
  • Getting Started
    • Requirements
    • Installation
  • Interface
    • Logic Editor
    • Project Outliner
    • Global Preferences
    • Attribute Editor
    • Material Editor
  • Objects
    • Project Objects
      • Scene
      • Screen
    • Scene Objects
      • Camera
      • Group
      • Lights
      • List
      • Mesh
      • Sprites
        • Sprite
        • Text
  • Toolbox
    • Array
      • Array Value
      • Clear Array
      • Concat Arrays
      • Get Array Element
      • Length of Array
      • Pop Array Element
      • Push Array Element
      • Set Array Element
    • DateTime
      • Date Time Formatter
      • Now (UTC)
      • System Time
      • Timezone Value
    • Events
      • Keyboard
        • On Key Press
        • On Key Release
    • Flow Control
      • Branch
      • Is Equal
      • Is Greater Equal
      • Is Less Equal
      • Select Data
      • Sequential
      • Switch
      • Toggle
    • Math
      • Add
      • Boolean
        • AND
        • Negate
        • OR
      • Ceil
      • Clamp
      • Divide
      • Floor
      • Maximum
      • Minimum
      • Modulo
      • Multiply
      • Power
      • Range Mapper
      • Root
      • Subtract
    • Incari
      • List
        • Generate List
        • Next List Entry
        • Previous List Entry
        • Select List Entry
        • Set Active
        • Set Current Index
      • Object
        • Get Alpha
        • Set Alpha
        • Get Scale
        • Set Scale
        • Get Rotation
        • Set Rotation
        • Get Position
        • Set Position
        • Get Visibility
        • Set Visibility
        • Set Tint
        • Get Tint
        • Get Material
        • Set Material
        • Set Text
    • Utilities
      • Group
Powered by GitBook
On this page
  • Introduction
  • Contents
  • External Links

Was this helpful?

  1. Toolbox

Events

PreviousTimezone ValueNextKeyboard

Last updated 3 years ago

Was this helpful?

Introduction

Although many branches of Logic can be defined in Incari's Logic Editor, a branch will never be executed without being initiated by an Event. They define when, and under what conditions, functionality should be triggered. In both Incari and computer science in general, event systems define a relationship between the fulfillment of criteria and the set of instructions to be performed once those criteria are met, and are made up of two parts: triggers and listeners.

Triggers can be thought of as being like announcements. A real-world example of a trigger is a school teacher announcing that an exam's time limit has been reached. The other staff members and students are the listeners in this case, whereby the Event occurring prompts the staff members to begin collecting exam papers, while students stop writing and put down their pencils.

Events in Incari can be directly triggered by the user's input, as is the case with Keyboard and Mouse Events, or triggered automatically when something happens relating to an Object, Variable, Scene, or Screen. One of the most powerful aspect of Incari's Events is that you even can define your own custom triggers and listeners, to establish the criteria under which one part of your Logic causes the execution of others.

Contents

External Links

on Musing Mortoray.

Keyboard
On Key Press
On Key Release
What is event programming?