-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #249 from overbound/feature/27-leaves
Added wind animation to RRZ Past
- Loading branch information
Showing
5 changed files
with
233 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,98 @@ | ||
<!--This Document is generated by GameMaker, if you edit it by hand then you do so at your own risk!--> | ||
<object> | ||
<spriteName>sprVVLeaf</spriteName> | ||
<solid>0</solid> | ||
<visible>-1</visible> | ||
<depth>0</depth> | ||
<persistent>0</persistent> | ||
<parentName>objSceneObject</parentName> | ||
<maskName><undefined></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>event_inherited(); | ||
image_angle = random(360); | ||
gravity = 0; | ||
alarm[0] = 40; | ||
is_wind = true; | ||
</string> | ||
</argument> | ||
</arguments> | ||
</action> | ||
</event> | ||
<event eventtype="2" enumb="0"> | ||
<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="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>visible = !visible; | ||
if (is_wind) { | ||
hspeed = 16; | ||
} else { | ||
if (hspeed > 0) { | ||
hspeed -= 0.25; | ||
} | ||
vspeed += 0.25; | ||
} | ||
</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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,127 @@ | ||
<!--This Document is generated by GameMaker, if you edit it by hand then you do so at your own risk!--> | ||
<object> | ||
<spriteName><undefined></spriteName> | ||
<solid>0</solid> | ||
<visible>-1</visible> | ||
<depth>0</depth> | ||
<persistent>0</persistent> | ||
<parentName>objSceneObject</parentName> | ||
<maskName><undefined></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>event_inherited(); | ||
ticks = 0; | ||
interval = 25; | ||
alarm[0] = 20; | ||
</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>with(objRRLeaf) { | ||
is_wind = false; | ||
} | ||
</string> | ||
</argument> | ||
</arguments> | ||
</action> | ||
</event> | ||
<event eventtype="2" 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>instance_create(view_xview[0]-24, view_yview[0] - 24 + round(random(view_hview[0] + 48)), objRRLeaf); | ||
alarm[0] = 20; | ||
</string> | ||
</argument> | ||
</arguments> | ||
</action> | ||
</event> | ||
<event eventtype="3" enumb="2"> | ||
<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>ticks = (ticks + 1) mod interval; | ||
if (ticks > 0) exit; | ||
if not audio_is_playing(sndFireBlow) | ||
{ | ||
play_sfx(sndFireBlow, 4); | ||
} | ||
</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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters