Skip to content
This repository was archived by the owner on Apr 6, 2024. It is now read-only.

Commit d86b6be

Browse files
authored
Update 06.4-actions-repeat.mdx (#206)
Update `repeat` to `repeatForever` for repeat forever example
1 parent 1a4725a commit d86b6be

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/06.4-actions-repeat.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ This method will cause the actor to repeat all of the actions built in the `repe
2424

2525
```typescript
2626
// Move up in a zig-zag by repeated moveBy's
27-
actor.actions.repeat((repeatCtx) => {
27+
actor.actions.repeatForever((repeatCtx) => {
2828
repeatCtx.moveBy(10, 0, 10)
2929
repeatCtx.moveBy(0, 10, 10)
30-
}, 5)
30+
})
3131
```

0 commit comments

Comments
 (0)