You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
AM2R-TimeTrials/objects/oBlobThrowerLand.object.gmx

297 lines
7.6 KiB

<!--This Document is generated by GameMaker, if you edit it by hand then you do so at your own risk!-->
<object>
<spriteName>sBlobThrower</spriteName>
<solid>0</solid>
<visible>-1</visible>
<depth>-4</depth>
<persistent>0</persistent>
<parentName>oEnemy</parentName>
<maskName>&lt;undefined&gt;</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>action_inherited();
myhealth = 100;
freezehp = 220;
damage = 40;
hitsound = sndEHit1;
deathsound = sndEDeath2;
frozenspr = sBlobThrowerFrozen;
canfreeze = 1;
hitmissileexpl = 0;
target = 0;
canattack = 1;
state = 0;
image_speed = 0;
freezefall = 0;
canhit = 1;
statetime = 100;
blobsolid = instance_create(x-4,y-36,oBlobSolid);
blobsolid.image_yscale = 2.75;
blobsolid.image_xscale = 0.5;
vulnerable = 0;
</string>
</argument>
</arguments>
</action>
</event>
<event eventtype="1" 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>with (blobsolid) instance_destroy();
var inst = instance_place(x, y, oBeam);
if(inst != noone) {
if(inst.ibeam) exit;
}
repeat (2) {
make_explosion1(x + irandom_range(-16, 16), y - 8);
make_explosion1(x + irandom_range(-16, 16), y - 24);
make_explosion1(x + irandom_range(-16, 16), y - 40);
}
</string>
</argument>
</arguments>
</action>
</event>
<event eventtype="3" 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>///Behavior
action_inherited();
enemy_active_check(40);
enemy_target_check(90, 1);
if (active == 1 &amp;&amp; frozen == 0) {
if (state == 0) {
sprite_index = sBlobThrower;
image_index = 0;
image_speed = 0;
if (target &amp;&amp; statetime &gt; 100) {
state = 1;
statetime = 0;
}
}
if (state == 1) {
if(instance_number(oBlobAir) &lt; 9) {
if (image_index &lt; 8) {
image_index += 0.2;
}
if (image_index &gt; 2) {
vulnerable = 1;
}
if (image_index &gt;= 8)
{
state = 2;
statetime = 0;
sprite_index = sBlobThrowerIdle;
frozenspr = sBlobThrowerIdleFrozen;
}
}
}
if (state == 2)
{
image_index += 0.1;
if (statetime/40 == floor(statetime/40)) {
if(instance_number(oBlobAir) &lt; 9)
{
var inst = instance_create(x,y-45,oBlobAir);
inst.parent = id;
}
}
if(statetime &gt; 100)
{
state = 3;
sprite_index = sBlobThrower;
image_index = 7;
frozenspr = sBlobThrowerFrozen;
statetime = 0;
}
}
if (state == 3)
{
if (image_index &gt; 0) image_index -= 0.2;
if (image_index &lt; 3) vulnerable = 0;
if (image_index &lt;= 0)
{
state = 0;
statetime = 0;
}
}
}
if (state == 100) {
enemy_death();
}
</string>
</argument>
</arguments>
</action>
<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>///Mouth Hitbox
bcollider = collision_rectangle(x-10, y-42, x+10, y-56, oBeam, false, true);
if(bcollider != noone &amp;&amp; vulnerable == 1)
{
myhealth = myhealth - 50;
if (canflash) {
flashing = 5;
fxtimer = 0;
}
PlaySoundMono(hitsound);
if(myhealth &lt;= 0) state = 100;
with (bcollider)
{
event_user(0);
if(!pbeam) instance_destroy();
}
}
mcollider = collision_rectangle(x-10, y-42, x+10, y-56, oMissile, false, true);
if(mcollider != noone &amp;&amp; vulnerable == 1)
{
if (canflash) {
flashing = 5;
fxtimer = 0;
}
PlaySoundMono(hitsound);
state = 100;
with (mcollider)
{
event_user(0);
}
}
</string>
</argument>
</arguments>
</action>
</event>
<event eventtype="4" ename="oBeam">
<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>///Nohit if not ice/plasma
if(!other.ibeam &amp;&amp; !other.pbeam) with(other)
{
event_user(1);
instance_destroy();
}
else event_inherited();
</string>
</argument>
</arguments>
</action>
</event>
<event eventtype="4" ename="oBombExpl">
<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>with (other) {
damage = 0;
}
</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>