Function
destroy
(obj: GameObj): voidRemove 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);
});
group
Game Obj
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);
});
group
Game Obj
Start
Assets
Game Obj
Components
Input
Events
Info
Math
Rendering
Draw
Debug
Plugins
Miscalenous