Web Developer Boardwalk
Languages Assistance The Developer
Code
  • Boardwalk

    Events
    When the world starts
    Do:
    Boardwalk.init


    Methods
      Boardwalk.init ( )
        No variables
           Do together
           Boardwalk.blowing trash Trash = Trash1
      Boardwalk.blowing trash Trash = Trash2
      Boardwalk.blowing trash Trash = Trash3
      // Sequental methods must be under "Do In Order"
      Do in order
           Wait 3 seconds
      Random Guy Eli say I wish everyone wasnt so mad at me... duration = 3 seconds
      Camera set vehicle to Random Guy Eli
      Random Guy Eli.walk Object = Random Guy Eli Other Object = Shack Move To An Object = true Distance = 0
      Random Guy Eli say Hey! Maybe this big level can help...
      Do together
           Random Guy Eli turn right 0.25 revolutions
      Random Guy Eli move forward 1.5 meters
      Random Guy Eli.UpperBody.Chest.RightUpperArm.RightForearm turn forward 0.25 revolutions
      Random Guy Eli.UpperBody.Chest.RightUpperArm.RightForearm turn right 0.25 revolutions
      Do together
           Light Switch.handle turn forward 0.25 revolutions
      Random Guy Eli.UpperBody.Chest.RightUpperArm.RightForearm turn left 0.25 revolutions
      Random Guy Eli.UpperBody.Chest.RightUpperArm.RightForearm turn backward 0.25 revolutions
      Random Guy Eli turn left 0.25 revolutions
      Boardwalk.Lights Flash Lights Off = false
      Wait 0.01 seconds
      Random Guy Eli say Yea!!!
      Boardwalk.Lights Flash Lights Off = true
      Wait 0.05 seconds
      Boardwalk.Lights Flash Lights Off = false
      Wait 1 second
      Boardwalk.Lights Flash Lights Off = true
      Wait 3 seconds
      Camera set vehicle to Boardwalk
      Random Guy Eli turn left 0.5 revolutions style = end gently
      Random Guy Eli say Oh NO! I think I really broke the lights... duration = 2 seconds
      Boardwalk.Lights Flash Lights Off = false
      Random Guy Eli say Whew! That was a close one... duration = 3 seconds
      Random Guy Eli say Now that I fixed the lights, I think I would be much better off at home with my friends and family... duration = 10 seconds
      Random Guy Eli.walk Object = Random Guy Eli Other Object = <None> Move To An Object = false Distance = 256


      Boardwalk.blowing trash ( [Obj] Trash)
        No variables
           Loop infinity times times
           Do together
           Trash roll left 1 revolution duration = 5 seconds
      Trash turn forward 1.5 revolutions style = abruptly
      Trash move left 2 meters duration = 0.4 seconds
      Trash move forward 3 meters
      Trash orient to Light-house
      If ( Trash is above Ground )
           Do together
           Trash move down ( Trash distance above Ground ) duration = 5 seconds
      Trash set opacity to 0 (0%) duration = 2 seconds
      Else
      Do Nothing
      If ( Trash is at least 3 meters away from Random Guy Eli )
           Do together
           Trash move down ( Trash1 distance above Ground ) duration = 5 seconds
      Trash set opacity to 0 (0%) duration = 2 seconds
      Else
      Do Nothing


      Boardwalk.Lights Flash ( [T/F] Lights Off)
        No variables
           If ( Lights Off == true )
           Do together
           Light01 set opacity to 0 (0%)
      Light02 set opacity to 0 (0%)
      Light03 set opacity to 0 (0%)
      Light04 set opacity to 0 (0%)
      Light05 set opacity to 0 (0%)
      Light06 set opacity to 0 (0%)
      Light07 set opacity to 0 (0%)
      Light08 set opacity to 0 (0%)
      Light09 set opacity to 0 (0%)
      Light10 set opacity to 0 (0%)
      Light11 set opacity to 0 (0%)
      Light12 set opacity to 0 (0%)
      Light13 set opacity to 0 (0%)
      pier set emissiveColor to (0, 0, 0)
      pier2 set emissiveColor to (0, 0, 0)
      pier3 set emissiveColor to (0, 0, 0)
      pier4 set emissiveColor to (0, 0, 0)
      pier5 set emissiveColor to (0, 0, 0)
      pier6 set emissiveColor to (0, 0, 0)
      pier7 set emissiveColor to (0, 0, 0)
      Else
        Do together
           Light01 set opacity to 1 (100%)
      Light02 set opacity to 1 (100%)
      Light03 set opacity to 1 (100%)
      Light04 set opacity to 1 (100%)
      Light05 set opacity to 1 (100%)
      Light06 set opacity to 1 (100%)
      Light07 set opacity to 1 (100%)
      Light08 set opacity to 1 (100%)
      Light09 set opacity to 1 (100%)
      Light10 set opacity to 1 (100%)
      Light11 set opacity to 1 (100%)
      Light12 set opacity to 1 (100%)
      Light13 set opacity to 1 (100%)
      pier set emissiveColor to (1, 1, 1)
      pier2 set emissiveColor to (1, 1, 1)
      pier3 set emissiveColor to (1, 1, 1)
      pier4 set emissiveColor to (1, 1, 1)
      pier5 set emissiveColor to (1, 1, 1)
      pier6 set emissiveColor to (1, 1, 1)
      pier7 set emissiveColor to (1, 1, 1)


    Random Guy Eli

    Methods
      Random Guy Eli.idle ( [123] SetIdleTime)
        StopTime = 1
           Random Guy Eli.UpperBody set pose Random Guy Eli.UpperBody.neutral duration = 0 seconds
      Random Guy Eli.LowerBody set pose Random Guy Eli.LowerBody.neutral duration = 0 seconds
      StopTime set value to ( ( ( time elapsed ) + SetIdleTime ) )
      While ( ( time elapsed ) < StopTime )
           Loop 1 time time
           Random Guy Eli.UpperBody.Chest move up 0.01 meters duration = 0.5 seconds
      Random Guy Eli.UpperBody.Chest move down 0.01 meters duration = .7 seconds


      Random Guy Eli.hello ( )
        No variables
           Random Guy Eli.UpperBody set pose Random Guy Eli.UpperBody.neutral duration = 0 seconds
      Random Guy Eli.LowerBody set pose Random Guy Eli.LowerBody.neutral duration = 0 seconds
      Do together
           Random Guy Eli.UpperBody set pose Random Guy Eli.UpperBody.wave1 duration = .2 seconds
      Random Guy Eli.UpperBody turn right 0.02 revolutions duration = .18 seconds
      Random Guy Eli.UpperBody.Chest.Neck.Head turn left .03 revolutions duration = .22 seconds
      Random Guy Eli.UpperBody turn backward 0.02 revolutions duration = 0.22 seconds
      Random Guy Eli.UpperBody set pose Random Guy Eli.UpperBody.wave2 duration = 0.22 seconds
      Random Guy Eli.UpperBody set pose Random Guy Eli.UpperBody.wave3 duration = .15 seconds
      Random Guy Eli.UpperBody set pose Random Guy Eli.UpperBody.wave2 duration = 0.15 seconds
      Random Guy Eli.UpperBody set pose Random Guy Eli.UpperBody.wave3 duration = .15 seconds
      Random Guy Eli.UpperBody set pose Random Guy Eli.UpperBody.wave2 duration = .12 seconds
      Do together
           Random Guy Eli.UpperBody turn forward 0.02 revolutions duration = .4 seconds
      Random Guy Eli.UpperBody turn left 0.02 revolutions duration = .4 seconds
      Random Guy Eli.UpperBody set pose Random Guy Eli.UpperBody.neutral duration = 0.4 seconds
      Random Guy Eli.UpperBody.Chest.Neck.Head turn right 0.03 revolutions duration = 0.4 seconds


      Random Guy Eli.angry ( )
        No variables
           Random Guy Eli.UpperBody set pose Random Guy Eli.UpperBody.neutral duration = 0 seconds
      Random Guy Eli.LowerBody set pose Random Guy Eli.LowerBody.neutral duration = 0 seconds
      Do together
           Random Guy Eli.UpperBody set pose Random Guy Eli.UpperBody.happy1 duration = 4/5 seconds
      Random Guy Eli.UpperBody turn forward 0.05 revolutions duration = 0.8 seconds
      Do in order
           Do together
           Random Guy Eli.LowerBody set pose Random Guy Eli.LowerBody.angry1 duration = .2 seconds
      Random Guy Eli move up 0.019 meters duration = 0.2 seconds
      Random Guy Eli roll left 0.01 revolutions duration = 0.2 seconds
      Do together
           Random Guy Eli.LowerBody set pose Random Guy Eli.LowerBody.angry2 duration = .2 seconds
      Random Guy Eli move down 0.019 meters duration = 0.2 seconds
      Random Guy Eli move right .03 meters duration = 0.2 seconds
      Do together
           Random Guy Eli.LowerBody set pose Random Guy Eli.LowerBody.angry3 duration = .2 seconds
      Random Guy Eli move up 0.019 meters duration = 0.2 seconds
      Random Guy Eli roll right 0.01 revolutions duration = 0.2 seconds
      Do together
           Random Guy Eli.LowerBody set pose Random Guy Eli.LowerBody.angry4 duration = .2 seconds
      Random Guy Eli move down 0.019 meters duration = 0.2 seconds
      Random Guy Eli move left .03 meters duration = 0.2 seconds
      Do together
           Random Guy Eli.UpperBody turn backward 0.05 revolutions duration = .19 seconds
      Random Guy Eli.UpperBody set pose Random Guy Eli.UpperBody.angry duration = 0.19 seconds
      Random Guy Eli.UpperBody.Chest.Neck.Head turn forward 0.03 revolutions duration = 0.19 seconds
      Wait 0.4 seconds
      Random Guy Eli.UpperBody set pose Random Guy Eli.UpperBody.neutral duration = 0.4 seconds


      Random Guy Eli.happy ( )
        No variables
           Random Guy Eli.UpperBody set pose Random Guy Eli.UpperBody.neutral duration = 0 seconds
      Random Guy Eli.LowerBody set pose Random Guy Eli.LowerBody.neutral duration = 0 seconds
      Do together
           Random Guy Eli.LowerBody set pose Random Guy Eli.LowerBody.happy1 duration = .08 seconds
      Random Guy Eli.UpperBody set pose Random Guy Eli.UpperBody.happy2 duration = .3 seconds
      Random Guy Eli move down 0.1 meters duration = 0.3 seconds
      Random Guy Eli.UpperBody.Chest.Neck.Head turn forward 0.04 revolutions duration = .03 seconds
      Do together
           Random Guy Eli move up 0.3 meters duration = .2 seconds
      Random Guy Eli move forward .05 meters duration = 0.03 seconds
      Random Guy Eli.LowerBody set pose Random Guy Eli.LowerBody.neutral duration = .2 seconds
      Random Guy Eli.UpperBody set pose Random Guy Eli.UpperBody.happy2 duration = 0.2 seconds
      Random Guy Eli.UpperBody.Chest.Neck.Head turn backward 0.04 revolutions duration = 0.2 seconds
      Do together
           Random Guy Eli move down 0.3 meters duration = .2 seconds
      Random Guy Eli move backward .05 meters duration = 0.03 seconds
      Random Guy Eli.UpperBody turn forward 0.04 revolutions duration = 0.2 seconds
      Random Guy Eli.UpperBody set pose Random Guy Eli.UpperBody.happy1 duration = 0.1 seconds
      Random Guy Eli.LowerBody set pose Random Guy Eli.LowerBody.happy1 duration = 0.2 seconds
      Random Guy Eli.UpperBody.Chest.Neck.Head turn backward 0.03 revolutions duration = .18 seconds
      Random Guy Eli.UpperBody set pose Random Guy Eli.UpperBody.happy2 duration = .18 seconds
      Wait 0.5 seconds
      Do together
           Random Guy Eli.UpperBody turn backward .04 revolutions duration = 0.25 seconds
      Random Guy Eli.UpperBody set pose Random Guy Eli.UpperBody.neutral duration = 0.25 seconds
      Random Guy Eli.LowerBody set pose Random Guy Eli.LowerBody.neutral duration = 0.25 seconds


      Random Guy Eli.walk ( [Obj] Object, [Obj] Other Object, [T/F] Move To An Object, [123] Distance)
        No variables
           Random Guy Eli.LowerBody set pose Random Guy Eli.LowerBody.neutral duration = 0 seconds
      Random Guy Eli.LowerBody set pose Random Guy Eli.LowerBody.neutral duration = 0 seconds
      If ( Move To An Object == true )
           Distance set value to ( ( ( ( ( round ( Object distance to Other Object ) ) / 2 ) ) - 1 ) )
      Else
      Do Nothing
      Loop Distance times time
           Do together
           Random Guy Eli.UpperBody set pose Random Guy Eli.UpperBody.leftarmswing duration = 0.5 seconds style = abruptly
      Random Guy Eli.UpperBody turn left 0.02 revolutions duration = 0.5 seconds style = abruptly
      Random Guy Eli.UpperBody.Chest.Neck.Head turn left 0.01 revolutions duration = 0.5 seconds
      Do in order
           Do together
           Random Guy Eli.LowerBody set pose Random Guy Eli.LowerBody.rightlegpass duration = 0.25 seconds style = abruptly
      Random Guy Eli move up 0.03 meters duration = 0.25 seconds
      Do together
           Random Guy Eli.LowerBody set pose Random Guy Eli.LowerBody.rightheelstrike duration = 0.25 seconds style = abruptly
      Random Guy Eli move down 0.03 meters duration = 0.25 seconds
      Object move forward 1 meter duration = 0.25 seconds
      Do together
           Random Guy Eli.UpperBody set pose Random Guy Eli.UpperBody.rightarmswing duration = 0.5 seconds style = abruptly
      Random Guy Eli.UpperBody turn right 0.02 revolutions duration = 0.5 seconds style = abruptly
      Random Guy Eli.UpperBody.Chest.Neck.Head turn right 0.01 revolutions duration = 0.5 seconds
      Do in order
           Do together
           Random Guy Eli.LowerBody set pose Random Guy Eli.LowerBody.leftlegpass duration = 0.25 seconds style = abruptly
      Random Guy Eli move up 0.03 meters duration = 0.25 seconds
      Do together
           Random Guy Eli.LowerBody set pose Random Guy Eli.LowerBody.leftheelstrike duration = 0.25 seconds style = abruptly
      Random Guy Eli move down 0.03 meters duration = 0.25 seconds
      Object move forward 1 meter duration = 0.25 seconds
      Do together
           Random Guy Eli.LowerBody set pose Random Guy Eli.LowerBody.neutral duration = .3 seconds
      Random Guy Eli.UpperBody set pose Random Guy Eli.UpperBody.neutral duration = .3 seconds


      Random Guy Eli.confused ( )
        No variables
           Random Guy Eli.LowerBody set pose Random Guy Eli.LowerBody.neutral duration = 0 seconds
      Random Guy Eli.UpperBody set pose Random Guy Eli.UpperBody.neutral duration = 0 seconds
      Do together
           Loop 2 times times
           Random Guy Eli.UpperBody.Chest.Neck.Head turn left .08 revolutions duration = 0.25 seconds
      Random Guy Eli.UpperBody.Chest.Neck.Head turn right .08 revolutions duration = 0.25 seconds
      Do in order
           Random Guy Eli.UpperBody set pose Random Guy Eli.UpperBody.confused1 duration = 0.4 seconds
      Random Guy Eli.UpperBody set pose Random Guy Eli.UpperBody.confused2 duration = 0.4 seconds
      Do in order
           Random Guy Eli.UpperBody.Chest.Neck.Head turn forward .1 revolutions duration = 0.4 seconds
      Random Guy Eli.UpperBody.Chest.Neck.Head turn backward .1 revolutions duration = 0.4 seconds
      Do together
           Random Guy Eli.UpperBody.Chest.Neck.Head orient to <None> offset by = (0, 0, 0) 1 duration = 2/5 seconds
      Random Guy Eli.UpperBody set pose Random Guy Eli.UpperBody.neutral duration = 0.4 seconds


      Random Guy Eli.no ( )
        No variables
           Loop 2 times times
           Do together