destroy(obj: GameObj): void
Remove the game obj.
param
obj- The game object to remove.
// every time bean collides with anything with tag "fruit", remove it bean.onCollide("fruit", (fruit) => { destroy(fruit); });
Remove the game obj.
param
obj- The game object to remove.
// every time bean collides with anything with tag "fruit", remove it bean.onCollide("fruit", (fruit) => { destroy(fruit); });
Assets
Components
Component Types
Input
Events
Info
Math
Misc
Draw
Layer
Camera
Level
Plugins
Button Bindings