Permalink
Browse files

3 sperm skins at random (20% for randomness)

  • Loading branch information...
1 parent 112ed5c commit 382f0af11f5055de64e4a0d64fef34cba6e9faa7 @YugoBogdan committed Feb 17, 2017
@@ -47,7 +47,7 @@ theta = 0;
direction_diff_theta = 0;
image_speed = 0;
-image_index = 1;
+image_index = global.sperm_image;
state = 'normal-new';
//list of states:
@@ -7,7 +7,41 @@
<persistent>0</persistent>
<parentName>obj_sperm</parentName>
<maskName>&lt;undefined&gt;</maskName>
- <events/>
+ <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>
+switch(irandom(4)){
+ case 0:
+ global.sperm_image = irandom(image_number-1);
+ break
+
+ default:
+ global.sperm_image = 0;
+}
+
+event_inherited();
+</string>
+ </argument>
+ </arguments>
+ </action>
+ </event>
+ </events>
<PhysicsObject>0</PhysicsObject>
<PhysicsObjectSensor>0</PhysicsObjectSensor>
<PhysicsObjectShape>0</PhysicsObjectShape>
@@ -26,6 +26,8 @@
<argument>
<kind>1</kind>
<string>scale_dir_counter = 0;
+image_index = obj_sperm.image_index;
+image_speed = 0;
</string>
</argument>
</arguments>
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@@ -22,5 +22,6 @@
<frames>
<frame index="0">images\spr_sperm_0.png</frame>
<frame index="1">images\spr_sperm_1.png</frame>
+ <frame index="2">images\spr_sperm_2.png</frame>
</frames>
</sprite>
@@ -21,5 +21,7 @@
<height>32</height>
<frames>
<frame index="0">images\spr_tail_0.png</frame>
+ <frame index="1">images\spr_tail_1.png</frame>
+ <frame index="2">images\spr_tail_2.png</frame>
</frames>
</sprite>

0 comments on commit 382f0af

Please sign in to comment.