offscreen(opt?: OffScreenCompOpt): OffScreenComp
Control the behavior of object when it goes out of view.
paramopt- Options for the offscreen component. See
add([
pos(player.pos),
sprite("bullet"),
offscreen({ destroy: true }),
"projectile",
]);
returnsThe offscreen comp.
sincev2000.2
groupComponents
subgroupBehaviour