Event Reference

Scripting in GS Framework is event-based.

By assigning a script to an entity such as a 3d object or a camera, the framework will automatically callback predefined script functions of your script class to handle specific events.

Typical events you might handle using scripts include:

  • OnUpdate(), called each frame.
  • OnPhysicStep(), called each physic step.

Several components of an application can be scripted to fine-tune it, including:

  • The project, highest level component controlling the application flow between scenes.
  • The scene, 3d or 2d where action usually takes place.
  • The item, part of a scene such as cameras, lights, objects or sprites.