<!--This Document is generated by GameMaker, if you edit it by hand then you do so at your own risk!-->
<object>
  <spriteName>&lt;undefined&gt;</spriteName>
  <solid>0</solid>
  <visible>-1</visible>
  <depth>-9999999</depth>
  <persistent>0</persistent>
  <parentName>&lt;undefined&gt;</parentName>
  <maskName>&lt;undefined&gt;</maskName>
  <events>
    <event eventtype="0" enumb="0">
      <action>
        <libid>1</libid>
        <id>603</id>
        <kind>7</kind>
        <userelative>0</userelative>
        <isquestion>0</isquestion>
        <useapplyto>-1</useapplyto>
        <exetype>2</exetype>
        <functionname></functionname>
        <codestring></codestring>
        <whoName>self</whoName>
        <relative>0</relative>
        <isnot>0</isnot>
        <arguments>
          <argument>
            <kind>1</kind>
            <string>
/*GAMECAVE EFFECTS ENGINE 3.X
Read the GCE3X documentation before using this code!

Object Name - objRain3
Engine - Rain Engine (type 3)
Purpose - The master object for rain; sets paramaters and handles the particles.

Explanation - The final rain engine provides you with lightning and side-view (platformer) rain effects.
The rain uses particles, where as the lightning is split into 2 parts; sheet lightning and fork lightning.
The sheet lightning simply fades in and out; drawing a large white rectangle across the screen. Where as
the fork lightning randomly generates it's own fork-lightning shape, and flashes across the screen. This
rain engine is very similiar to the first rain engine, which uses pixels instead of lines for the rain drops.
*/

if instance_number(objRain)&gt;1 or instance_exists(objSnow){ instance_destroy() }

//Rain Particles
rain3 = part_system_create() //Create the main rain system.
part_system_depth(rain3,-9999999) //Set its depth

raindrop = part_type_create() //Create a raindrop particle
part_type_alpha2(raindrop,1,0)
part_type_color_mix(raindrop,c_white,c_ltgray)
part_type_direction(raindrop,295,305,0,4)
part_type_speed(raindrop,1,2,0,0)
part_type_life(raindrop,300,400)
part_type_shape(raindrop,pt_shape_disk)
part_type_size(raindrop,0.05,0.1,0,0)

rain_emitter = part_emitter_create(rain3)
part_emitter_region(rain3,rain_emitter,view_xview[0],view_xview[0]+view_wview[0]+200,-10,-5,ps_shape_ellipse,ps_distr_linear)
part_emitter_stream(rain3,rain_emitter,raindrop,3) //Start continually streaming rain particles.

repeat(100) {part_system_update(rain3);} //"Fast forward" the rains movement so it's already falling steadily when first shown.

instance_activate_object(objRainDarkness)
if !instance_exists(objRainDarkness)
{
    instance_create(view_xview[0]-100,view_yview[0]-100,objRainDarkness)
}
</string>
          </argument>
        </arguments>
      </action>
    </event>
    <event eventtype="1" enumb="0">
      <action>
        <libid>1</libid>
        <id>603</id>
        <kind>7</kind>
        <userelative>0</userelative>
        <isquestion>0</isquestion>
        <useapplyto>-1</useapplyto>
        <exetype>2</exetype>
        <functionname></functionname>
        <codestring></codestring>
        <whoName>self</whoName>
        <relative>0</relative>
        <isnot>0</isnot>
        <arguments>
          <argument>
            <kind>1</kind>
            <string>part_system_destroy(rain3) //Scrap the rain-system.
</string>
          </argument>
        </arguments>
      </action>
    </event>
    <event eventtype="3" enumb="0">
      <action>
        <libid>1</libid>
        <id>603</id>
        <kind>7</kind>
        <userelative>0</userelative>
        <isquestion>0</isquestion>
        <useapplyto>-1</useapplyto>
        <exetype>2</exetype>
        <functionname></functionname>
        <codestring></codestring>
        <whoName>self</whoName>
        <relative>0</relative>
        <isnot>0</isnot>
        <arguments>
          <argument>
            <kind>1</kind>
            <string>part_emitter_region(rain3,rain_emitter,view_xview[0]-100,view_xview[0]+view_wview[0]+200,view_yview[0],view_yview[0]-5-view_hview[0],ps_shape_ellipse,ps_distr_linear)
</string>
          </argument>
        </arguments>
      </action>
    </event>
    <event eventtype="7" enumb="5">
      <action>
        <libid>1</libid>
        <id>203</id>
        <kind>0</kind>
        <userelative>0</userelative>
        <isquestion>0</isquestion>
        <useapplyto>-1</useapplyto>
        <exetype>1</exetype>
        <functionname>action_kill_object</functionname>
        <codestring></codestring>
        <whoName>self</whoName>
        <relative>0</relative>
        <isnot>0</isnot>
      </action>
    </event>
    <event eventtype="7" enumb="4">
      <action>
        <libid>1</libid>
        <id>603</id>
        <kind>7</kind>
        <userelative>0</userelative>
        <isquestion>0</isquestion>
        <useapplyto>-1</useapplyto>
        <exetype>2</exetype>
        <functionname></functionname>
        <codestring></codestring>
        <whoName>self</whoName>
        <relative>0</relative>
        <isnot>0</isnot>
        <arguments>
          <argument>
            <kind>1</kind>
            <string>repeat(100) {part_system_update(rain3);} //"Fast forward" the rains movement so it's already falling steadily when first shown.
</string>
          </argument>
        </arguments>
      </action>
    </event>
  </events>
  <PhysicsObject>0</PhysicsObject>
  <PhysicsObjectSensor>0</PhysicsObjectSensor>
  <PhysicsObjectShape>0</PhysicsObjectShape>
  <PhysicsObjectDensity>0.5</PhysicsObjectDensity>
  <PhysicsObjectRestitution>0.100000001490116</PhysicsObjectRestitution>
  <PhysicsObjectGroup>0</PhysicsObjectGroup>
  <PhysicsObjectLinearDamping>0.100000001490116</PhysicsObjectLinearDamping>
  <PhysicsObjectAngularDamping>0.100000001490116</PhysicsObjectAngularDamping>
  <PhysicsObjectFriction>0.200000002980232</PhysicsObjectFriction>
  <PhysicsObjectAwake>-1</PhysicsObjectAwake>
  <PhysicsObjectKinematic>0</PhysicsObjectKinematic>
  <PhysicsShapePoints/>
</object>
