Type: Animal Brain
Level: not in gallery
Pages: 2
Description: Found in the crow character. When a player approaches a crow it will fly away, and after 10 seconds (and out of sight) it will be destroyed.


page 1 @Idle and Takeoff

  1. WHEN [until][detect][player]
  2. …WHEN [countdown][5][loop] DO [play sound][sound:Animal Crow Call Single]
  3. WHEN [after][detect][player]
  4. …WHEN [once] DO [jump]
  5. …/…WHEN DO [play sound][sound:Animal Bird Wing Flaps]
  6. …/…WHEN DO [play fx][fx:Feather Burst]
  7. …WHEN DO [move]
  8. …WHEN [falling] DO [switch page][page:@Flight]

page 2 @Flight

  1. WHEN DO [move][with flying]
  2. WHEN DO [move][with flying][in direction][world up]
  3. WHEN [countdown timer][10] DO [destroy]


Have bird return after flight.

page 1

Add above line 1
WHEN [page entered] DO [vectorvar:start position][equals][position]

Change line 6 to
…WHEN [started to] DO [jump]

page 2 Change line 4 to
WHEN [countdown timer][10] DO [switch page][page:@Return] // you can change the number as required

Add page 3 @Return

  1. WHEN [until][detect][player] DO [move][with flying][toward][vectorvar:start position]
  2. WHEN [detect player] DO [vectorvar:start position][x][equals][vecorvar:startposition][x][plus][1] // The crow will fly to an area away from the player if the player is still standing where the crow first flew from
  3. …WHEN DO [move][with flying][toward][vectorvar:start position]
  4. WHEN [no longer][detect][player] DO [fall]
  5. …WHEN DO [switch page][page:@Idle and Take Off]
  6. WHEN [distance to][vectorvar:startposition][less than][2][and][not][detect][player] DO [fall]
  7. …WHEN DO [switch page][page:@Idle and Take Off]

Comments are closed.

Website Powered by

Up ↑

%d bloggers like this: