DanmakuJSON "wait" Action

Pauses the behaviour of the executing bullet-source for the given duration (in seconds).

Required Parameters

ParameterTypeDescription
duration Term The duration (in seconds) for which the behaviour of the executing bullet-source will be paused

Examples

root:
{
    angle: 180,
    repeatBehaviour: true,
    behaviour:
    [
        # Shoot some bullets... 
        {repeat: {times: 10, actions:
        [
            # Shoot the default bullet...
            {shoot: {speed: 6}},

            # Rotate the root-emitter...
            {rotate: {angle: 10}},

            # Wait for 0.1 seconds...
            {wait: {duration: 0.1}}
        ]}},

        # Wait for one second...
        {wait: {duration: 1}}
    ]
}

 


Leave a comment