Skip to lesson
LESSON 36 / 44 · Intermediate

Launch copies and build projectile attacks

Reuse an object as a projectile without manually adding every shot.

Open editor in a new tab ↗

Before you begin

Create a small projectile sprite and a player with an Attack input action.

Build it step by step

  1. Open Combat & Interactions and inspect the Projectile preset, or use an Input action rule with OBJECTS → Create & launch copy.

  2. Select the projectile source and the launching object. Choose offset, starting velocity, gravity and lifetime.

  3. Keep a short lifetime and use the existing copy cleanup. Test where the projectile appears before adding damage.

  4. Add a contact rule involving copies and use Affect the objects touching to address the actual projectile and target.

  5. Configure damage, cooldown and removal so a shot does not damage the same target every simulation step. Test repeated firing and misses.

TRY THIS IDEA

Practical example

A lantern launches a small light orb. The orb expires after two seconds and disappears when its hit is handled.

Test your work

Each shot is independent, misses disappear and repeated firing does not leave an ever-growing trail of entities.

If it does not work

If every projectile disappears together, check whether the action targets the original source instead of the copy involved in contact.

MAKE IT YOUR OWN

Student challenge

Make a slow, gravity-affected projectile and compare its arc with a straight shot.

Show the result to a partner. Explain what you changed and how you tested it.

Keep exploring