tags: factory title: Shoot bullets brief: This example shows how to dynamically spawn bullet game objects using a factory component. author: Defold Foundation
This example shows how to dynamically spawn bullet game objects using a factory component and how to also move and delete the bullets. The setup consists of two game objects; one for the player and one for the bullet that is spawned using a factory component.
Combine this example with some of the examples from the movement and physics categories to create a shoot 'em up game!
player : The red ship at the bottom. Contains:
bullet : The bullet fired by the player. Contains: