Type: Animal Brain
Level: not in gallery
Pages: 2
Description: Found in the Horned Toad model. Similar to the wandering animal brain.
Kode
page 1 @Wander
- WHEN [countdown timer][2][hold time][4][loop] DO [move][at speed][0.2]
- WHEN [countdown timer][2][loop] DO [#turn direction][equals][random number][1][to][2][as integer]
- WHEN [countdown timer][random number][5][to][10][as integer][loop] DO [play sound][Animal Horned Toad]
- 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]
- …WHEN DO [objvar:my player][equals][it]
- …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][Foley Animal Sound]
- WHEN DO [move][away from][objvar:player]
- WHEN [countdown timer][2]
- …WHEN [not][detect][player] DO [switch page][page:@Wander]