Skip to main content

Multiple Action

You can define sequential actions using the actions array. Up to 3 actions are supported. Each action creates a new "phase". Timing indicators like :before or :after refer to the state at the beginning or end of that specific phase.

players = { p1, p2 }

state = {
baller = p1,
position = {
p1 = (0, 0)
p2 = (50, 0)
}
}

// Support multiple actions
actions = [
action = {
move = { p1 -> (0, 40) }
},
action = {
pass = { p1 -> p2:after }
}
]
12