Dimenticare

ChessPiece.object.gmx

May 23rd, 2014
493
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 3.50 KB | None | 0 0
  1. <!--I don't know what this was for, and Googling the paste ID doesn't yield any results, but I'm leaving it up anyway.-->
  2.  
  3. <!--This Document is generated by GameMaker, if you edit it by hand then you do so at your own risk!-->
  4. <object>
  5.   <spriteName>pieces</spriteName>
  6.   <solid>0</solid>
  7.   <visible>-1</visible>
  8.   <depth>0</depth>
  9.   <persistent>0</persistent>
  10.   <parentName>&lt;undefined&gt;</parentName>
  11.   <maskName>&lt;undefined&gt;</maskName>
  12.   <events>
  13.     <event eventtype="0" enumb="0">
  14.       <action>
  15.         <libid>1</libid>
  16.         <id>603</id>
  17.         <kind>7</kind>
  18.         <userelative>0</userelative>
  19.         <isquestion>0</isquestion>
  20.         <useapplyto>-1</useapplyto>
  21.         <exetype>2</exetype>
  22.         <functionname></functionname>
  23.         <codestring></codestring>
  24.         <whoName>self</whoName>
  25.         <relative>0</relative>
  26.         <isnot>0</isnot>
  27.         <arguments>
  28.           <argument>
  29.             <kind>1</kind>
  30.             <string>image_speed=0;
  31. scaled=true;
  32. turn=0;
  33. // The Other ยป User Defined 0 events for all subclasses contain code setting the sprite
  34. // and possible moves of each individual piece.
  35. event_perform(ev_other, ev_user0);
  36. </string>
  37.           </argument>
  38.         </arguments>
  39.       </action>
  40.     </event>
  41.     <event eventtype="6" enumb="4">
  42.       <action>
  43.         <libid>1</libid>
  44.         <id>603</id>
  45.         <kind>7</kind>
  46.         <userelative>0</userelative>
  47.         <isquestion>0</isquestion>
  48.         <useapplyto>-1</useapplyto>
  49.         <exetype>2</exetype>
  50.         <functionname></functionname>
  51.         <codestring></codestring>
  52.         <whoName>self</whoName>
  53.         <relative>0</relative>
  54.         <isnot>0</isnot>
  55.         <arguments>
  56.           <argument>
  57.             <kind>1</kind>
  58.             <string>// If it's your turn to move when you're clicked, show the options.
  59. if (global.turn==color){
  60.     if (instance_number(Spotlight)&gt;0){
  61.         if (Spotlight.piece=self.id){
  62.             with (Spotlight) instance_destroy();
  63.         }
  64.     } else {
  65.         showPossibleMoves(self.id);
  66.     }
  67. }
  68. </string>
  69.           </argument>
  70.         </arguments>
  71.       </action>
  72.     </event>
  73.     <event eventtype="8" enumb="0">
  74.       <action>
  75.         <libid>1</libid>
  76.         <id>603</id>
  77.         <kind>7</kind>
  78.         <userelative>0</userelative>
  79.         <isquestion>0</isquestion>
  80.         <useapplyto>-1</useapplyto>
  81.         <exetype>2</exetype>
  82.         <functionname></functionname>
  83.         <codestring></codestring>
  84.         <whoName>self</whoName>
  85.         <relative>0</relative>
  86.         <isnot>0</isnot>
  87.         <arguments>
  88.           <argument>
  89.             <kind>1</kind>
  90.             <string>draw_sprite_ext(sprite_index, image_index, x, y, image_xscale, image_yscale, 0, color, true);
  91. </string>
  92.           </argument>
  93.         </arguments>
  94.       </action>
  95.     </event>
  96.   </events>
  97.   <PhysicsObject>0</PhysicsObject>
  98.   <PhysicsObjectSensor>0</PhysicsObjectSensor>
  99.   <PhysicsObjectShape>0</PhysicsObjectShape>
  100.   <PhysicsObjectDensity>0.5</PhysicsObjectDensity>
  101.   <PhysicsObjectRestitution>0.100000001490116</PhysicsObjectRestitution>
  102.   <PhysicsObjectGroup>0</PhysicsObjectGroup>
  103.   <PhysicsObjectLinearDamping>0.100000001490116</PhysicsObjectLinearDamping>
  104.   <PhysicsObjectAngularDamping>0.100000001490116</PhysicsObjectAngularDamping>
  105.   <PhysicsObjectFriction>0.200000002980232</PhysicsObjectFriction>
  106.   <PhysicsObjectAwake>-1</PhysicsObjectAwake>
  107.   <PhysicsObjectKinematic>0</PhysicsObjectKinematic>
  108.   <PhysicsShapePoints/>
  109. </object>
Advertisement
Add Comment
Please, Sign In to add comment