rotate(a?: number): RotateComp

Rotates a Game Object (in degrees).

param

let bean = add([
    sprite("bean"),
    rotate(),
])

// bean will be upside down!
bean.angle = 180
kaplay logo

Misc