LightsCameraAction's Code

Created by: Bella

world

Events

When the world starts
Do:
world.my first method


While ( ( shark distance to fish ) > 1 ) is true
Begin:
shark say Where are you?
During:
world.sharkChase
End:
shark say Gotcha!


Let move world.animal


When ( ( shark distance to fish ) < 1 ) becomes true
Do:
world.fishCircle


Methods

  world.my first method ( )
    No variables
     Do Nothing


  world.sharkChase ( )
    No variables
       shark turn to face fish duration = 0.25 seconds style = abruptly
  shark move amount = 0.25 meters toward target = fish duration = 0.25 seconds style = abruptly


  world.fishCircle ( )
    No variables
       Wait 1 second
  Do together
       Do in order
       fish turn left 0.25 revolutions
  fish turn right 1 revolution asSeenBy = shark
  fish say Don't eat me!