Scripts
Holds the Aego Script attachments of a node.
component engine.Script
On this page
Try it
Enable a script attachment
The target has a disabled Move On Ready script and stays at the gray mark.
Enable the Move On Ready attachment in the Inspector. The scene restarts, its real Ready method runs and moves the target to the blue mark. Reset disables it again.
Starts the scene; open the example parameters to experiment.
Scene4 nodes
Scriptmain.aes
package demo
// Ready runs only when this actual script attachment is enabled.
script MoveOnReady {
func Ready() {
node.SetPosition(Vec2{2, 0})
}
}
Related guides
- Aego Script Aego Script is the gameplay language of Aego.