

This event will be triggered when the user taps on the plane.

In this example a pointerdown event handler is selected and added to a plane object. You can either create a blank Script or select an event handler to be created for you.ĭifferent nodes types can trigger different events and as such you'll get different options depending on the node. Scripts can be added under nodes by right-clicking on a node in the Hierarchy and selecting New > Script. The TypeScript Language Primer article in this documentation serves to introduce the language and is a great place to start for anyone scripting zaps for the first time. In any case, it's possible to create interesting interactive experiences using only a minimal amount of scripting. It shouldn't take long to get up to speed with the language, especially with previous JavaScript or ActionScript experience. Scripts are coded in a special form of JavaScript called TypeScript.

ZapWorks Studio makes it possible to build more complex interactivity and complex state into experiences using script nodes.Īs well as letting you write your own Scripts from scratch, you can attach handler functions to node events that can be triggered as a result of: Opening Transition - Penalty Shootout Game.Using Math.random to increase re-scannability.
