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
param
let bean = add([ sprite("bean"), rotate(), ]) // bean will be upside down! bean.angle = 180
Assets
Components
Component Types
Input
Events
Info
Math
Misc
Draw
Level
Plugins
Button Bindings