Goodluck / API Reference

ControlAlways2D

Stores movement and rotation that will be applied to the entity every frame by sys_move_2d.

instantiate(game, [
    local_transform2d(),
    // Move the entity in its up direction every frame.
    control_always2d([0, 1]),
    // When moving, travel at the speed of 3 units per second.
    move2d(3, 0)
]);