Goodluck / API Reference

ControlAlways

Stores movement, rotation, and animation that will be applied to the entity every frame by sys_move and sys_animate, respectively.

instantiate(game, [
    transform(),
    // Move the entity in its forward direction every frame.
    control_always([0, 0, 1]),
    // When moving, travel at the speed of 3 units per second.
    move(3, 0)
]);