CommitLog |

This commit is contained in:
JoshuanBurger12 2020-07-27 10:16:04 +12:00
parent b37153cba3
commit 2bde2d7dc7
1 changed files with 95 additions and 0 deletions

View File

@ -33,6 +33,7 @@ is_moving = false;
dead = false;
invuln_counter_max = 1*room_speed;
invuln_counter = invuln_counter_max;
s_pressed = false;
energy_max = 500;
energy = energy_max
@ -246,6 +247,39 @@ speed = -20;
direction = image_angle
speed += 5
</string>
</argument>
</arguments>
</action>
</event>
<event eventtype="5" enumb="83">
<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(dead == true || speed &lt; 0)
{
return 0;
}
if(!s_pressed){
s_pressed = true
image_angle+=180
}
direction = image_angle
speed += 5
</string>
</argument>
</arguments>
@ -431,6 +465,37 @@ instance_create(view_xview[0]+(view_wview[0]/2),view_yview[0]+(view_hview[0]/2),
is_moving = true;
audio_play_sound(snd_engine,1,true);
image_index = ship_type+1;
</string>
</argument>
</arguments>
</action>
</event>
<event eventtype="9" enumb="83">
<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(dead == true)
{
return 0;
}
is_moving = true;
audio_play_sound(snd_engine,1,true);
image_index = ship_type+1;
</string>
</argument>
</arguments>
@ -458,6 +523,36 @@ image_index = ship_type+1;
return 0;
}
is_moving = false;
audio_stop_sound(snd_engine)
image_index = ship_type;
</string>
</argument>
</arguments>
</action>
</event>
<event eventtype="10" enumb="83">
<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(dead == true)
{
return 0;
}
s_pressed = false
is_moving = false;
audio_stop_sound(snd_engine)
image_index = ship_type;