DanmakuJSON "repeat" Action

Repeats a sequence of actions for a given number of times.

Required Parameters

ParameterTypeDescription
actionsActionSequenceThe actions which will be executed for each iteration
timesTermThe number of repetitions

Remarks

Note, that the value of the times-parameter will be rounded to an integer number. If the times-parameter is equal to zero (or negative), the entire action-sequence won't be executed.


Examples

root:
{
    behaviour:
    [
        # Shoot 200 bullets before the behavior continues
        {repeat: {times: 200, actions:
        [
            {shoot: {speed: 5, angle: 90}},
            {wait: {duration: 0.5}}
        ]}}
    ]
}

 


Leave a comment