Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!--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.-->
- <!--This Document is generated by GameMaker, if you edit it by hand then you do so at your own risk!-->
- <object>
- <spriteName>pieces</spriteName>
- <solid>0</solid>
- <visible>-1</visible>
- <depth>0</depth>
- <persistent>0</persistent>
- <parentName><undefined></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>image_speed=0;
- scaled=true;
- turn=0;
- // The Other ยป User Defined 0 events for all subclasses contain code setting the sprite
- // and possible moves of each individual piece.
- event_perform(ev_other, ev_user0);
- </string>
- </argument>
- </arguments>
- </action>
- </event>
- <event eventtype="6" 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>// If it's your turn to move when you're clicked, show the options.
- if (global.turn==color){
- if (instance_number(Spotlight)>0){
- if (Spotlight.piece=self.id){
- with (Spotlight) instance_destroy();
- }
- } else {
- showPossibleMoves(self.id);
- }
- }
- </string>
- </argument>
- </arguments>
- </action>
- </event>
- <event eventtype="8" 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>draw_sprite_ext(sprite_index, image_index, x, y, image_xscale, image_yscale, 0, color, true);
- </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>
Advertisement
Add Comment
Please, Sign In to add comment