Trey+Graves

=games's Code= =Created by: Trey Graves=

Events

 * **When the world starts** ||
 * **Do:** || || **world.my first method** || ||


 * **When** **is clicked on** **fighterPlane** ||
 * **Do:** || || **fighterPlane.explode** || ||


 * **When** **is clicked on** **fighterPlane2** ||
 * **Do:** || || **fighterPlane2.explode** || ||


 * **When** **is clicked on** **fighterPlane3** ||
 * **Do:** || || **fighterPlane3.explode** || ||


 * **When** **is clicked on** **fighterPlane4** ||
 * **Do:** || || **fighterPlane4.explode** || ||


 * **When** **is clicked on** **fighterPlane5** ||
 * **Do:** || || **fighterPlane5.explode** || ||


 * **When** **is clicked on** **fighterPlane6** ||
 * **Do:** || || **fighterPlane6.explode** || ||


 * **When** **is clicked on** **fighterPlane7** ||
 * **Do:** || || **fighterPlane7.explode** || ||


 * **When** **is clicked on** **fighterPlane8** ||
 * **Do:** || || **fighterPlane8.explode** || ||


 * **When** **is clicked on** **fighterPlane9** ||
 * **Do:** || || **fighterPlane9.explode** || ||


 * **While** A **is pressed** ||
 * **Begin:** || ||  || ||
 * **During:** || || **armyCopter.ascend** || ||
 * **End:** || ||  || ||


 * **While** Left **is pressed** ||
 * **Begin:** || ||  || ||
 * **During:** || || **armyCopter.turn** direction = **left** || ||
 * **End:** || ||  || ||


 * **While** Right **is pressed** ||
 * **Begin:** || ||  || ||
 * **During:** || || **armyCopter.turn** direction = **right** || ||
 * **End:** || ||  || ||


 * **While** Up **is pressed** ||
 * **Begin:** || ||  || ||
 * **During:** || || **armyCopter.go** direction = **forward** || ||
 * **End:** || ||  || ||


 * **While** Down **is pressed** ||
 * **Begin:** || ||  || ||
 * **During:** || || **armyCopter.go** direction = **backward** || ||
 * **End:** || ||  || ||


 * **When** **is clicked on** **anything** ||
 * **Do:** || || **armyCopter.shoot** || ||


 * **While** D **is pressed** ||
 * **Begin:** || ||  || ||
 * **During:** || || **armyCopter.descend** || ||
 * **End:** || ||  || ||

Methods
//No variables// ||
 * **world.my first method**
 * || **//** **all copters run away** || **world.Run away** || **//** **read instructions** || **3D Text2** **set** **opacity** **to** **1 (100%)** ||


 * **world.Run away**
 * planes** **=** ||
 * |||| **//** **planes go away from copter and run** |||| **For all** **planes** **, every** **item_from_planes** **together** ||  || **fighterPlane7** **say** **run hes here to get us** || **item_from_planes** **move** **up** **5** meters || **item_from_planes** **turn** **left** **0.5** revolutions || **item_from_planes** **move** **forward** **5** meters ||

//No variables// ||
 * **world.move**
 * |||| **//** **all copters move when being approched** |||| **If** ( **armyCopter** **is within** **10** meters **of** **fighterPlane** ) ||  || **fighterPlane** **move** **up** **1** meter |||| **Else** ||   || //Do Nothing// |||| **If** ( **armyCopter** **is within** **10** meters **of** **fighterPlane7** ) ||   || **fighterPlane7** **move** **up** **1** meter |||| **Else** ||   || //Do Nothing// |||| **If** ( **armyCopter** **is within** **10** meters **of** **fighterPlane2** ) ||   || **fighterPlane2** **move** **up** **1** meter |||| **Else** ||   || //Do Nothing// |||| **If** ( **armyCopter** **is within** **10** meters **of** **fighterPlane8** ) ||   || **fighterPlane8** **move** **up** **1** meter |||| **Else** ||   || //Do Nothing// |||| **If** ( **armyCopter** **is within** **10** meters **of** **fighterPlane3** ) ||   || **fighterPlane3** **move** **up** **1** meter |||| **Else** ||   || //Do Nothing// |||| **If** ( **armyCopter** **is within** **10** meters **of** **fighterPlane6** ) ||   || **fighterPlane6** **move** **up** **1** meter |||| **Else** ||   || //Do Nothing// |||| **If** ( **armyCopter** **is within** **10** meters **of** **fighterPlane5** ) ||   || **fighterPlane5** **move** **up** **1** meter |||| **Else** ||   || //Do Nothing// |||| **If** ( **armyCopter** **is within** **10** meters **of** **fighterPlane4** ) ||   || **fighterPlane4** **move** **up** **1** meter |||| **Else** ||   || //Do Nothing// |||| **If** ( **armyCopter** **is within** **10** meters **of** **fighterPlane9** ) ||   || **fighterPlane9** **move** **up** **1** meter |||| **Else** ||   || //Do Nothing// ||

Functions
//No variables// ||
 * Number **world.score**
 * |||| **If** **true** ||
 * ^  ||   || //Do Nothing// ||
 * ^  |||| **Else** ||
 * ^  ||   || //Do Nothing// ||
 * ^  |||||| **Return** **1** ||

Methods

 * **fighterPlane.explode**
 * halftime** **=** **0.5** ||
 * |||||| **Do together** ||
 * ^  ||   |||| **Do in order** ||
 * ^  ||^   ||   || **fighterPlane** **set pose** **fighterPlane.blow'd up** style = **abruptly** duration = **halftime** seconds || **fighterPlane** **set pose** **fighterPlane.blow'd down** style = **abruptly** duration = **halftime** seconds |||| **fighterPlane** **move** **down** ( **fighterPlane.rearWheelMount** **distance above** **** ) ( **(** **halftime** ***** **2** **)** ) ||

//No variables// ||
 * **fighterPlane.shoot**
 * || //Do Nothing// ||

Methods

 * **fighterPlane2.explode**
 * halftime** **=** **0.5** ||
 * |||||| **Do together** ||
 * ^  ||   |||| **Do in order** ||
 * ^  ||^   ||   || **fighterPlane2** **set pose** **fighterPlane2.blow'd up** style = **abruptly** duration = **halftime** seconds || **fighterPlane2** **set pose** **fighterPlane2.blow'd down** style = **abruptly** duration = **halftime** seconds |||| **fighterPlane2** **move** **down** ( **fighterPlane2.rearWheelMount** **distance above** **** ) ( **(** **halftime** ***** **2** **)** ) ||

Methods

 * **fighterPlane3.explode**
 * halftime** **=** **0.5** ||
 * |||||| **Do together** ||
 * ^  ||   |||| **Do in order** ||
 * ^  ||^   ||   || **fighterPlane3** **set pose** **fighterPlane3.blow'd up** style = **abruptly** duration = **halftime** seconds || **fighterPlane3** **set pose** **fighterPlane3.blow'd down** style = **abruptly** duration = **halftime** seconds |||| **fighterPlane3** **move** **down** ( **fighterPlane3.rearWheelMount** **distance above** **** ) ( **(** **halftime** ***** **2** **)** ) ||

Methods

 * **fighterPlane4.explode**
 * halftime** **=** **0.5** ||
 * |||||| **Do together** ||
 * ^  ||   |||| **Do in order** ||
 * ^  ||^   ||   || **fighterPlane4** **set pose** **fighterPlane4.blow'd up** style = **abruptly** duration = **halftime** seconds || **fighterPlane4** **set pose** **fighterPlane4.blow'd down** style = **abruptly** duration = **halftime** seconds |||| **fighterPlane4** **move** **down** ( **fighterPlane4.rearWheelMount** **distance above** **** ) ( **(** **halftime** ***** **2** **)** ) ||

Methods

 * **fighterPlane5.explode**
 * halftime** **=** **0.5** ||
 * |||||| **Do together** ||
 * ^  ||   |||| **Do in order** ||
 * ^  ||^   ||   || **fighterPlane5** **set pose** **fighterPlane5.blow'd up** style = **abruptly** duration = **halftime** seconds || **fighterPlane5** **set pose** **fighterPlane5.blow'd down** style = **abruptly** duration = **halftime** seconds |||| **fighterPlane5** **move** **down** ( **fighterPlane5.rearWheelMount** **distance above** **<None>** ) ( **(** **halftime** ***** **2** **)** ) ||

Methods

 * **fighterPlane6.explode**
 * halftime** **=** **0.5** ||
 * |||||| **Do together** ||
 * ^  ||   |||| **Do in order** ||
 * ^  ||^   ||   || **fighterPlane6** **set pose** **fighterPlane6.blow'd up** style = **abruptly** duration = **halftime** seconds || **fighterPlane6** **set pose** **fighterPlane6.blow'd down** style = **abruptly** duration = **halftime** seconds |||| **fighterPlane6** **move** **down** ( **fighterPlane6.rearWheelMount** **distance above** **<None>** ) ( **(** **halftime** ***** **2** **)** ) ||

Methods

 * **fighterPlane7.explode**
 * halftime** **=** **0.5** ||
 * |||||| **Do together** ||
 * ^  ||   |||| **Do in order** ||
 * ^  ||^   ||   || **fighterPlane7** **set pose** **fighterPlane7.blow'd up** style = **abruptly** duration = **halftime** seconds || **fighterPlane7** **set pose** **fighterPlane7.blow'd down** style = **abruptly** duration = **halftime** seconds |||| **fighterPlane7** **move** **down** ( **fighterPlane7.rearWheelMount** **distance above** **<None>** ) ( **(** **halftime** ***** **2** **)** ) ||

Methods

 * **fighterPlane8.explode**
 * halftime** **=** **0.5** ||
 * |||||| **Do together** ||
 * ^  ||   |||| **Do in order** ||
 * ^  ||^   ||   || **fighterPlane8** **set pose** **fighterPlane8.blow'd up** style = **abruptly** duration = **halftime** seconds || **fighterPlane8** **set pose** **fighterPlane8.blow'd down** style = **abruptly** duration = **halftime** seconds |||| **fighterPlane8** **move** **down** ( **fighterPlane8.rearWheelMount** **distance above** **<None>** ) ( **(** **halftime** ***** **2** **)** ) ||

Methods

 * **fighterPlane9.explode**
 * halftime** **=** **0.5** ||
 * |||||| **Do together** ||
 * ^  ||   |||| **Do in order** ||
 * ^  ||^   ||   || **fighterPlane9** **set pose** **fighterPlane9.blow'd up** style = **abruptly** duration = **halftime** seconds || **fighterPlane9** **set pose** **fighterPlane9.blow'd down** style = **abruptly** duration = **halftime** seconds |||| **fighterPlane9** **move** **down** ( **fighterPlane9.rearWheelMount** **distance above** **<None>** ) ( **(** **halftime** ***** **2** **)** ) ||

Methods
//No variables// ||
 * **armyCopter.shoot**
 * |||| **Do in order** ||
 * ^  ||   || **//** **makes copter move in shootong motion** || **armyCopter** **turn** **backward** **.005** revolutions duration = **.1** seconds || **armyCopter** **turn** **forward** **0** revolutions duration = **0.25** seconds ||


 * **armyCopter.ascend**
 * Max_Height** **=** **12442** ||
 * |||||| **//** **copter go up** |||||| **Do together** ||  |||| **armyCopter.inTheAir** **set** **value** **to** **true** |||| **If** ( ( **armyCopter** **distance above** **ground** ) **<=** **Max_Height** ) ||   || **armyCopter** **move** **up** **1** meter duration = **0.5** seconds style = **abruptly** |||| **Else** ||   || //Do Nothing// ||

//No variables// ||
 * **armyCopter.descend**
 * |||| **//** **copter go down** |||| **If** **armyCopter.inTheAir** ||  || **armyCopter** **move** **down** **1** meter duration = **0.25** seconds style = **abruptly** |||| **Else** ||   || **armyCopter.inTheAir** **set** **value** **to** **false** ||

//No variables// ||
 * **armyCopter.turn** ( [ABC] **direction**)
 * |||||| **//** **copter move left and right** |||||| **If** **armyCopter.inTheAir** ||  |||| **If** ( **direction** **==** **left** ) ||   || **armyCopter** **turn** **left** **0.02** revolutions duration = **0.25** seconds style = **abruptly** |||| **Else** ||   || **armyCopter** **turn** **right** **0.02** revolutions duration = **0.25** seconds style = **abruptly** |||||| **Else** ||   |||| //Do Nothing// ||

//No variables// ||
 * **armyCopter.go** ( [ABC] **direction**)
 * |||||| **//** **copter move forward and backward** |||||| **If** **armyCopter.inTheAir** ||  |||| **If** ( **direction** **==** **forward** ) ||   || **armyCopter** **move** **forward** **5** meters duration = **0.25** seconds style = **abruptly** |||| **Else** ||   || **armyCopter** **move** **backward** **5** meters duration = **0.5** seconds style = **abruptly** |||||| **Else** ||   |||| //Do Nothing// |||||| **//** **No comment** ||

Functions

 * Number **3D Text.scored**
 * planes** **=** ||
 * |||| **If** **true** ||
 * ^  ||   || //Do Nothing// ||
 * ^  |||| **Else** ||
 * ^  ||   || //Do Nothing// ||
 * ^  |||||| **Return** ( **(** ( **3D Text.scored** ) **+** **1** **)** ) ||

Methods
//No variables// ||
 * **3D Text2.showup**
 * || //Do Nothing// ||