Workshop › Missile Command-style Defense › Step 9 of 35
Every frame each missile takes one step towards its target, using stepTowards.
```js
for (const m of incoming) {
stepTowards(m, m.speed)
}
```incoming, move it m.speed pixels towards its target.In update, under the countdown if block, leave an empty line and write the loop.
Skills: Velocity and gravity
← One missile a second Smoke trails →