repeat
@zylem/game-lib / actions / repeat
Function: repeat()
repeat(
action,times):Action
Defined in: packages/game-lib/src/lib/actions/composition.ts:140
Repeat an action a fixed number of times.
Parameters
action
times
number
Returns
Example
entity.runAction(repeat(moveBy({ x: 2, duration: 500 }), 5));