Type: NPC Brain
Level: not in gallery
Pages: 2
Description: Found in the Key character.A variation of the Wandering Animal brain.
Kode
page 1 @Wander
- WHEN [countdown timer][2][hold time][4][loop] DO [move][at speed][0.15
- WHEN [countdown timer][2][loop] DO [numvar:turn direction][equals][random number][1][to][2][as integer]
- WHEN [moving]
- …WHEN [duration timer][2][loop]
- …/…WHEN #turn direction][equal to][1] DO [turn][in direction][right][slowly]
- …/…WHEN [#turn direction][equal to][2] DO [turn][in direction][left][slowly]
- WHEN [bump] DO [turn][away from][it][quickly]
- WHEN [detect][player] DO [switch page][page: @ Flee from Player]
page 2 @ Flee from Player
- WHEN [page entered] DO [jump]
- WHEN [duration timer][1] DO [play sound][sound:Cartoon Key Jump]
- WHEN [detect][Player] DO [move][away from][it][at speed][0.8]
- WHEN [no longer][detect][player] DO [switch page][@Wander]