spaceinator/objects/obj_player.object.gmx

231 lines
6.2 KiB
Plaintext
Raw Normal View History

2020-07-22 01:56:09 +00:00
<!--This Document is generated by GameMaker, if you edit it by hand then you do so at your own risk!-->
<object>
<spriteName>spr_player</spriteName>
<solid>0</solid>
<visible>-1</visible>
2020-07-24 08:17:51 +00:00
<depth>-100</depth>
2020-07-22 01:56:09 +00:00
<persistent>0</persistent>
<parentName>&lt;undefined&gt;</parentName>
<maskName>&lt;undefined&gt;</maskName>
<events>
2020-07-22 03:26:19 +00:00
<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>
2020-07-23 20:57:47 +00:00
<string>/// Player creation code.
image_speed = 0;
2020-07-22 03:26:19 +00:00
image_index = 1;
2020-07-23 20:57:47 +00:00
2020-07-22 03:26:19 +00:00
</string>
</argument>
</arguments>
</action>
</event>
2020-07-22 02:47:12 +00:00
<event eventtype="3" enumb="0">
2020-07-22 02:24:30 +00:00
<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>
2020-07-23 20:57:47 +00:00
<string>/// Player per frame
direction = image_angle
2020-07-22 02:47:12 +00:00
if(speed &gt; 0)
speed -= 1
if(speed &gt; 20)
speed = 20;
view_xview[0] = x - view_wview[0]/2;
view_yview[0] = y - view_hview[0]/2;
2020-07-23 20:57:47 +00:00
2020-07-22 02:24:30 +00:00
</string>
</argument>
</arguments>
</action>
</event>
2020-07-22 02:47:12 +00:00
<event eventtype="5" enumb="87">
2020-07-22 01:56:09 +00:00
<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>
2020-07-22 02:47:12 +00:00
<string>direction = image_angle
speed += 5
2020-07-22 03:13:56 +00:00
2020-07-22 01:56:09 +00:00
</string>
</argument>
</arguments>
</action>
</event>
2020-07-22 02:47:12 +00:00
<event eventtype="5" enumb="68">
2020-07-22 01:56:09 +00:00
<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>
2020-07-22 03:15:36 +00:00
<string>image_angle += 5;
2020-07-22 01:56:09 +00:00
</string>
</argument>
</arguments>
</action>
</event>
2020-07-22 02:47:12 +00:00
<event eventtype="5" enumb="65">
2020-07-22 02:24:30 +00:00
<action>
<libid>1</libid>
2020-07-22 02:47:12 +00:00
<id>603</id>
<kind>7</kind>
2020-07-22 02:24:30 +00:00
<userelative>0</userelative>
<isquestion>0</isquestion>
<useapplyto>-1</useapplyto>
2020-07-22 02:47:12 +00:00
<exetype>2</exetype>
<functionname></functionname>
2020-07-22 02:24:30 +00:00
<codestring></codestring>
<whoName>self</whoName>
<relative>0</relative>
<isnot>0</isnot>
<arguments>
<argument>
2020-07-22 02:47:12 +00:00
<kind>1</kind>
2020-07-22 03:15:36 +00:00
<string>image_angle -= 5;
2020-07-22 03:39:16 +00:00
</string>
</argument>
</arguments>
</action>
</event>
2020-07-22 03:52:06 +00:00
<event eventtype="6" enumb="53">
2020-07-22 03:39:16 +00:00
<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>
2020-07-22 03:45:22 +00:00
<string>var new_bullet = instance_create(x,y,obj_bullet);
2020-07-22 03:52:51 +00:00
audio_play_sound(snd_shoot,2,false);
2020-07-22 03:43:09 +00:00
new_bullet.image_angle = image_angle;
2020-07-22 03:51:06 +00:00
new_bullet.direction = image_angle;
2020-07-22 03:55:49 +00:00
new_bullet.speed = speed + 5;
2020-07-22 03:43:09 +00:00
2020-07-22 03:13:56 +00:00
</string>
</argument>
</arguments>
</action>
</event>
<event eventtype="9" enumb="87">
<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>audio_play_sound(snd_engine,1,true);
2020-07-22 03:27:38 +00:00
image_index = 0;
2020-07-22 03:13:56 +00:00
</string>
</argument>
</arguments>
</action>
</event>
<event eventtype="10" enumb="87">
<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>audio_stop_sound(snd_engine)
2020-07-22 03:26:19 +00:00
image_index = 1;
2020-07-22 02:47:12 +00:00
</string>
2020-07-22 02:24:30 +00:00
</argument>
</arguments>
</action>
</event>
2020-07-22 01:56:09 +00:00
</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>