offscreen(opt?: OffScreenCompOpt): OffScreenComp
Control the behavior of object when it goes out of view.since
add([ pos(player.pos), sprite("bullet"), offscreen({ destroy: true }), "projectile", ])
since
add([ pos(player.pos), sprite("bullet"), offscreen({ destroy: true }), "projectile", ])
Assets
Components
Component Types
Input
Events
Info
Math
Misc
Draw
Level
Plugins
Button Bindings