Creating Behaviors
Composing Wakeup Criterion
- Wakeup conditions can be complex and changing, for example:
- In a game, the user must press two buttons within
a time limit to open a door
- Behavior's initial wakeup conditions are:
- Viewer near button 1 or viewer near button 2
- After button 1 is pressed, conditions become:
- Viewer near button 2 or time elapsed
- If time elapses, conditions revert back to the initial one
- If button 2 is pressed in time, behavior sends event to
wakeup door-opening behavior, then exits without rescheduling