Boss deaths should now sync immediately

cleaner
milesthenerd 5 years ago
parent fea043b7c5
commit 50a00ddc07

@ -204,10 +204,13 @@ if (surface_exists(oControl.gui_surface)) {
instance_create(oCharacter.x, oCharacter.y + 480, oA4EscapeExplosionFail);
instance_destroy();
} else {
with (oA4EscapeSeqFX) instance_destroy();
global.event[203] = 9;
instance_destroy();
popup_text_ext("Reactor destroyed", 240);
if(room != rm_a4b01){
with (oA4EscapeSeqFX) instance_destroy();
sfx_stop_loops();
global.event[203] = 9;
instance_destroy();
popup_text_ext("Reactor destroyed", 240);
}
}
}
}
@ -292,7 +295,8 @@ instance_destroy();
<arguments>
<argument>
<kind>1</kind>
<string></string>
<string>
</string>
</argument>
</arguments>
</action>

@ -76,6 +76,8 @@ sprite_index = sArachnusUnmorph;
event_user(1);
PowerBombImmune = false;
dead = false;
</string>
</argument>
</arguments>
@ -606,7 +608,7 @@ if (state == 90) {
myhealth -= 1;
shaking = 1;
angry = 0;
if (myhealth == 0) {
if (myhealth &lt;= 0) {
with(oArachnusFireball3) instance_destroy();
alarm[10] = 60;
alarm[11] = 240;
@ -629,7 +631,7 @@ if (state == 90) {
with (spike_L2) active = 0;
with (spike_R2) active = 0;
}
if (myhealth == 0) {
if (myhealth &lt;= 0) {
with (spike_L1) active = 0;
with (spike_R1) active = 0;
hspeed = 2.5 * -facing;
@ -661,6 +663,13 @@ if (PowerBombImmune) {
if(!instance_exists(oPBombExpl)) PowerBombImmune = false;
}
if(global.event[103] &gt; 0 &amp;&amp; !dead){
myhealth = 0;
state = 90;
statetime = -1;
dead = true;
with(oArachnusSpikes) instance_destroy();
}
</string>
</argument>
</arguments>

@ -63,6 +63,8 @@ wall2.image_yscale = 3;
wheel = instance_create(x, y, oBoss1Wheel);
sparkcounter = 0;
dead = false;
</string>
</argument>
</arguments>
@ -358,6 +360,21 @@ if (fxtimer &lt; 5) {
fxtimer += 1;
} else fxtimer = 0;
if (flashing &gt; 0) flashing -= 1;
if(global.event[51] &gt; 0 &amp;&amp; !dead){
state = 100;
sfx_play(sndBoss1Death);
with (wall1) instance_destroy();
with (wall2) instance_destroy();
with (wheel) instance_destroy();
with (block1) event_user(0);
with (block2) event_user(0);
with (inst_107511) instance_destroy();
mus_fadeout(musAncientGuardian);
oMusicV2.bossbgm = sndJump;
mus_current_fadein();
dead = true;
}
</string>
</argument>
</arguments>

@ -58,6 +58,7 @@ ptanksTimer = 10;
teleportTimer = 180;
disconnectTimer = 900;
pingTimer = 90;
resetTimer = -1;
teleport = false;
noName = false;
state = undefined;
@ -185,6 +186,8 @@ posY = 3;
time = 60;
trail = 0;
get_loadout(5);
</string>
</argument>
</arguments>
@ -639,7 +642,7 @@ if(mapChanged){
<kind>1</kind>
<string>var v = 0;
for(var f=0; f&lt;array_length_1d(global.event); f++){
if(f &gt; 350){
if(f &gt; 350 || f == 102){
break;
}
if(global.eventPrev[f] != global.event[f]){
@ -1511,6 +1514,25 @@ if(pingTimer &lt;= 0){
var result = network_send_packet(socket, buffer, buffer_tell(buffer));
}
if(resetTimer == 0){
buffer_delete(buffer);
var size, type, alignment;
size = 1024;
type = buffer_grow;
alignment = 1;
buffer = buffer_create(size, type, alignment);
buffer_seek(buffer, buffer_seek_start, 0);
buffer_write(buffer, buffer_u8, 20);
buffer_write(buffer, buffer_u8, global.clientID);
var bufferSize = buffer_tell(buffer);
buffer_seek(buffer, buffer_seek_start, 0);
buffer_write(buffer, buffer_s32, bufferSize);
buffer_write(buffer, buffer_u8, 20);
buffer_write(buffer, buffer_u8, global.clientID);
var result = network_send_packet(socket, buffer, buffer_tell(buffer));
show_debug_message("it sent why doesn't this work pls");
}
time--;
maxpbombsTimer--;
maxhealthTimer--;
@ -1521,6 +1543,10 @@ ptanksTimer--;
disconnectTimer--;
pingTimer--;
if(resetTimer &gt; -1){
resetTimer--;
}
if(instance_exists(self)){
if(ds_list_size(roomListData) &gt; 0){
for(var h=0; h&lt;ds_list_size(roomListData); h++){
@ -1830,6 +1856,11 @@ switch(type_event){
case 106:
load_character_vars();
reset_dmap();
global.itemPrev = array_clone(global.item);
global.metdeadPrev = array_clone(global.metdead);
global.eventPrev = array_clone(global.event);
global.dmapPrev = array_clone(global.dmap);
popup_text("Stats reset");
break;
case 0:
global.clientID = buffer_read(_buffer, buffer_u8);
@ -2044,7 +2075,7 @@ switch(type_event){
if(is_array(eventArr)){
for(var i=0; i&lt;array_length_1d(global.event); i++){
for(var f=0; f&lt;array_height_2d(eventArr); f++){
if(i == eventArr[f, 1]){
if(i == eventArr[f, 1] &amp;&amp; eventArr[f, 1] != 102){
global.eventPrev[i] = eventArr[f, 0];
if(global.event[i] != eventArr[f, 0]){
global.event[i] = eventArr[f, 0];
@ -2282,37 +2313,37 @@ switch(type_event){
if(i == 0){
global.bomb = 1;
global.bombPrev = global.bomb;
popup_text("Bombs enabled");
popup_text(get_text("Items", "Bombs") + " " + get_text("GlobalOptions", "Enabled"));
}
if(i == 1){
global.powergrip = 1;
global.powergripPrev = global.powergrip;
popup_text("Powergrip enabled");
popup_text(get_text("Items", "PowerGrip") + " " + get_text("GlobalOptions", "Enabled"));
}
if(i == 2){
global.spiderball = 1;
global.spiderballPrev = global.spiderball;
popup_text("Spiderball enabled");
popup_text(get_text("Items", "SpiderBall") + " " + get_text("GlobalOptions", "Enabled"));
}
if(i == 3){
global.jumpball = 1;
global.jumpballPrev = global.jumpball;
popup_text("Springball enabled");
popup_text(get_text("Items", "JumpBall") + " " + get_text("GlobalOptions", "Enabled"));
}
if(i == 4){
global.hijump = 1;
global.hijumpPrev = global.hijump;
popup_text("Hi jump enabled");
popup_text(get_text("Items", "HiJump") + " " + get_text("GlobalOptions", "Enabled"));
}
if(i == 5){
global.currentsuit = 1;
global.currentsuitPrev = global.currentsuit;
popup_text("Varia suit enabled");
popup_text(get_text("Items", "VariaSuit") + " " + get_text("GlobalOptions", "Enabled"));
if(sfx_isplaying(sndSpinJump)){
sfx_stop(sndSpinJump);
}
@ -2333,7 +2364,7 @@ switch(type_event){
if(i == 6){
global.spacejump = 1;
global.spacejumpPrev = global.spacejump;
popup_text("Spacejump enabled");
popup_text(get_text("Items", "SpaceJump") + " " + get_text("GlobalOptions", "Enabled"));
if(sfx_isplaying(sndSpinJump)){
sfx_stop(sndSpinJump);
}
@ -2354,13 +2385,13 @@ switch(type_event){
if(i == 7){
global.speedbooster = 1;
global.speedboosterPrev = global.speedbooster;
popup_text("Speedbooster enabled");
popup_text(get_text("Items", "SpeedBooster") + " " + get_text("GlobalOptions", "Enabled"));
}
if(i == 8){
global.screwattack = 1;
global.screwattackPrev = global.screwattack;
popup_text("Screwattack enabled");
popup_text(get_text("Items", "ScrewAttack") + " " + get_text("GlobalOptions", "Enabled"));
if(sfx_isplaying(sndSpinJump)){
sfx_stop(sndSpinJump);
}
@ -2381,7 +2412,7 @@ switch(type_event){
if(i == 9){
global.currentsuit = 2;
global.currentsuitPrev = global.currentsuit;
popup_text("Gravity suit enabled");
popup_text(get_text("Items", "GravitySuit") + " " + get_text("GlobalOptions", "Enabled"));
if(sfx_isplaying(sndSpinJump)){
sfx_stop(sndSpinJump);
}
@ -2402,31 +2433,31 @@ switch(type_event){
if(i == 10){
global.cbeam = 1;
global.cbeamPrev = global.cbeam;
popup_text("Charge beam enabled");
popup_text(get_text("Items", "ChargeBeam") + " " + get_text("GlobalOptions", "Enabled"));
}
if(i == 11){
global.ibeam = 1;
global.ibeamPrev = global.ibeam;
popup_text("Ice beam enabled");
popup_text(get_text("Items", "IceBeam") + " " + get_text("GlobalOptions", "Enabled"));
}
if(i == 12){
global.wbeam = 1;
global.wbeamPrev = global.wbeam;
popup_text("Wave beam enabled");
popup_text(get_text("Items", "WaveBeam") + " " + get_text("GlobalOptions", "Enabled"));
}
if(i == 13){
global.sbeam = 1;
global.sbeamPrev = global.sbeam;
popup_text("Spazer beam enabled");
popup_text(get_text("Items", "SpazerBeam") + " " + get_text("GlobalOptions", "Enabled"));
}
if(i == 14){
global.pbeam = 1;
global.pbeamPrev = global.pbeam;
popup_text("Plasma beam enabled");
popup_text(get_text("Items", "PlasmaBeam") + " " + get_text("GlobalOptions", "Enabled"));
}
} else if(receivedItem == 0 &amp;&amp; global.item[i] == 1){
resend = true;
@ -2519,10 +2550,10 @@ switch(type_event){
for(var i=0; i&lt;array_length_1d(global.event); i++){
if(i &lt; 350){
var receivedEvent = buffer_read(_buffer, buffer_u8);
if(floor(receivedEvent) &gt; floor(global.event[i])){
if(floor(receivedEvent) &gt; floor(global.event[i]) &amp;&amp; i != 102){
global.event[i] = receivedEvent;
global.eventPrev[i] = global.event[i];
} else if(floor(receivedEvent) &lt; floor(global.event[i])){
} else if(floor(receivedEvent) &lt; floor(global.event[i]) &amp;&amp; i != 102){
resend = true;
}
}
@ -2797,6 +2828,10 @@ switch(type_event){
var result = network_send_packet(socket, buffer, buffer_tell(buffer));
}
if(room == rm_score){
resetTimer = 5;
}
if(room == titleroom){
seed = undefined;
}

@ -548,6 +548,28 @@ alarm[11] = 1;
</arguments>
</action>
</event>
<event eventtype="2" enumb="5">
<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></string>
</argument>
</arguments>
</action>
</event>
<event eventtype="2" enumb="4">
<action>
<libid>1</libid>

@ -95,7 +95,7 @@ boostspddelay = 1;
stepdelayfinal = stepdelay;
use2 = 0;
dead = false;
@ -559,6 +559,12 @@ if (use2) {
event_user(2);
use2 = 0;
}
if(global.event[261] &gt; 0 &amp;&amp; !dead){
state = 100;
statetime = -1;
dead = true;
}
</string>
</argument>
</arguments>

@ -45,6 +45,8 @@ damage = global.mod_genesisDamage;
turning = 0;
turnframe = 0;
scan_log(38, get_text("ScanEvents", "ScanBioform"), 180, 0);
dead = false;
</string>
</argument>
</arguments>
@ -364,6 +366,12 @@ if (turning) {
}
}
statetime += 1;
if(global.event[307] &gt; 0 &amp;&amp; !dead){
hp = 0;
event_user(1);
dead = true;
}
</string>
</argument>
</arguments>

@ -270,9 +270,14 @@ if (active) {
event_user(2);
}
var key;
if(os_type != os_android){
key = keyboard_check_pressed(vk_enter);
} else {
key = (oControl.kMenu1 &gt; 0);
}
if (keyboard_check_pressed(vk_space) &amp;&amp; oControl.kMenu1PushedSteps == 0) {
if (key &amp;&amp; oControl.kMenu1PushedSteps == 0) {
if (global.curropt == num_ip &amp;&amp; os_type != os_android) {
editing = !editing;
op[num_ip].editing = editing;
@ -318,6 +323,9 @@ if (active) {
editing = !editing;
op[num_name].editing = editing;
}
} // if (oControl.kMenu1 &amp;&amp; oControl.kMenu1PushedSteps == 0)
if (oControl.kMenu1 &amp;&amp; oControl.kMenu1PushedSteps == 0){
if (global.curropt == num_connection){
if(!instance_exists(oClient) &amp;&amp; global.canConnect){
instance_create(x, y, oClient);
@ -341,7 +349,7 @@ if (active) {
instance_destroy();
sfx_play(sndMenuSel);
}
} // if (oControl.kMenu1 &amp;&amp; oControl.kMenu1PushedSteps == 0)
}
/*
if (oControl.kMenu2 &amp;&amp; oControl.kMenu1PushedSteps == 0) {

@ -60,6 +60,7 @@ text4 = get_text("ScoreScreen", "TheLastMonster");
text5 = get_text("ScoreScreen", "ToBeContinued");
statetime = 0;
state = 0;
itemstaken = global.itemstaken;
if (global.difficulty == 0) {
ending = 276;
@ -201,7 +202,7 @@ statetime += 1;
<kind>1</kind>
<string>//room_change(titleroom, 1); //room_goto(titleroom);
if(round((global.itemstaken / 88) * 100) &lt; 100) {
if(round((itemstaken / 88) * 100) &lt; 100) {
room_change(titleroom, 1); //room_goto(titleroom);
} else {
room_goto(rm_secretEnding);

@ -31,6 +31,31 @@ myhealth = global.mod_tankHcore;
image_speed = 1/10;
shaking = 0;
flashing = 0;
dead = false;
</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 (oTankShield) instance_destroy();
</string>
</argument>
</arguments>
@ -54,6 +79,11 @@ flashing = 0;
<argument>
<kind>1</kind>
<string>if (flashing &gt; 0) flashing -= 1;
if(global.event[203] != 1 &amp;&amp; !dead){
event_user(1);
dead = true;
}
</string>
</argument>
</arguments>

@ -78,6 +78,8 @@ movespeed = 1;
directrotate = 0;
aim_x = 0;
aim_y = 0;
dead = false;
</string>
</argument>
</arguments>
@ -635,7 +637,17 @@ if (state != 100) {
if (flashing &gt; 0) flashing -= 1;
statetime += 1;
if(global.event[200] &gt; 1 &amp;&amp; !dead){
make_explosion3(x, y);
repeat (30) instance_create(x, y, oDebris);
state = 100;
statetime = -1;
alarm[10] = 1;
alarm[11] = 300;
with (oTesterShield) event_user(1);
visible = false;
dead = true;
}
</string>
</argument>
</arguments>

@ -58,6 +58,8 @@ walkspeed = 0.3;
image_index_last = 0;
proj_damage = 0;
scan_log(34, get_text("ScanEvents", "ScanMechanism"), 180, 0);
dead = false;
</string>
</argument>
</arguments>
@ -614,6 +616,19 @@ if (fxtimer &lt; 5) {
} else fxtimer = 0;
if (flashing &gt; 0) flashing -= 1;
dist = distance_to_point(oCharacter.x, oCharacter.y - 20);
if(global.event[152] &gt;= 2 &amp;&amp; !dead){
flashing = 5;
fxtimer = 0;
PlaySoundMono(sndTorizoHit);
state = 100;
statetime = -1;
alarm[10] = 1;
alarm[11] = 300;
mus_fadeout(musTorizoA);
oMusicV2.bossbgm = sndJump;
dead = true;
}
</string>
</argument>
</arguments>
@ -839,6 +854,7 @@ if (myhealth &lt;= 0) {
alarm[11] = 300;
mus_fadeout(musTorizoA);
oMusicV2.bossbgm = sndJump;
global.event[152] = 2;
}
</string>
</argument>

@ -76,6 +76,8 @@ repeat (18) {
i += 1;
}
wings = instance_create(x, y - 65, oTorizoWings);
dead = false;
</string>
</argument>
</arguments>
@ -562,6 +564,24 @@ if (fxtimer &lt; 5) {
} else fxtimer = 0;
if (flashing &gt; 0) flashing -= 1;
dist = distance_to_point(oCharacter.x, oCharacter.y - 20);
if(global.event[152] &gt;= 3 &amp;&amp; !dead){
flashing = 5;
fxtimer = 0;
PlaySoundMono(sndTorizoHit);
state = 100;
statetime = -1;
alarm[10] = 1;
alarm[11] = 300;
with (oTorizoEgg) event_user(1);
with (oTorizoGhost) event_user(1);
if(oControl.mod_fusion == 0) {
with (oTorizoSpikes) event_user(0);
mus_fadeout(musTorizoB);
oMusicV2.bossbgm = sndJump;
}
dead = true;
}
</string>
</argument>
</arguments>
@ -765,6 +785,7 @@ if (myhealth &lt;= 0) {
mus_fadeout(musTorizoB);
oMusicV2.bossbgm = sndJump;
}
global.event[152] = 3;
}
</string>
</argument>

@ -17,8 +17,8 @@ global.waterlevel = 0;
global.watertype = 0;
if (global.lavastate == 8) {
make_liquid(1, 680, 0, 0, 0, 0, 0);
} else if (global.lavastate == 9) make_liquid(1, 160, 0, 0, 0, 0, 0);
if (global.lavastate &gt;= 9) {
} else if (global.lavastate == 9 &amp;&amp; !instance_exists(oClient)) make_liquid(1, 160, 0, 0, 0, 0, 0);
if (global.lavastate &gt;= 9 &amp;&amp; !instance_exists(oClient)) {
tile_layer_shift(-101, -32, 48);
tile_layer_shift(-102, -32, 48);
}
@ -72,14 +72,14 @@ if (global.lavastate &lt; 10) tile_layer_delete(-99);</code>
<instance objName="oSlope3B" x="528" y="528" name="inst_137014" locked="0" code="" scaleX="1" scaleY="1" colour="4294967295" rotation="0"/>
<instance objName="oSlope3B" x="448" y="560" name="inst_137015" locked="0" code="" scaleX="1" scaleY="1" colour="4294967295" rotation="0"/>
<instance objName="oSlope3B" x="304" y="592" name="inst_137016" locked="0" code="" scaleX="1" scaleY="1" colour="4294967295" rotation="0"/>
<instance objName="oSlope3B" x="336" y="400" name="inst_137017" locked="0" code="&#xA;if (global.lavastate &gt;= 9) {&#xA; x -= 32;&#xA; y += 48;&#xA;}&#xA;" scaleX="1" scaleY="1" colour="4294967295" rotation="0"/>
<instance objName="oSlope3B" x="336" y="400" name="inst_137017" locked="0" code="if (global.lavastate &gt;= 9 &amp;&amp; !instance_exists(oClient)) {&#xA; x -= 32;&#xA; y += 48;&#xA;}" scaleX="1" scaleY="1" colour="4294967295" rotation="0"/>
<instance objName="oSlope3" x="480" y="544" name="inst_137018" locked="0" code="" scaleX="1" scaleY="1" colour="4294967295" rotation="0"/>
<instance objName="oSlope3" x="384" y="576" name="inst_137019" locked="0" code="" scaleX="1" scaleY="1" colour="4294967295" rotation="0"/>
<instance objName="oSlope2B" x="64" y="608" name="inst_137020" locked="0" code="" scaleX="1" scaleY="1" colour="4294967295" rotation="0"/>
<instance objName="oSlope3" x="128" y="544" name="inst_137021" locked="0" code="" scaleX="1" scaleY="1" colour="4294967295" rotation="0"/>
<instance objName="oSlope3" x="240" y="176" name="inst_137022" locked="0" code="" scaleX="1" scaleY="1" colour="4294967295" rotation="0"/>
<instance objName="oSlope1" x="240" y="240" name="inst_137023" locked="0" code="&#xA;if (global.lavastate &gt;= 9) {&#xA; x -= 32;&#xA; y += 48;&#xA;}&#xA;" scaleX="1" scaleY="1" colour="4294967295" rotation="0"/>
<instance objName="oSlope2B" x="384" y="256" name="inst_137024" locked="0" code="&#xA;if (global.lavastate &gt;= 9) {&#xA; x -= 32;&#xA; y += 48;&#xA;}&#xA;" scaleX="1" scaleY="1" colour="4294967295" rotation="0"/>
<instance objName="oSlope1" x="240" y="240" name="inst_137023" locked="0" code="if (global.lavastate &gt;= 9 &amp;&amp; !instance_exists(oClient)) {&#xA; x -= 32;&#xA; y += 48;&#xA;}" scaleX="1" scaleY="1" colour="4294967295" rotation="0"/>
<instance objName="oSlope2B" x="384" y="256" name="inst_137024" locked="0" code="if (global.lavastate &gt;= 9 &amp;&amp; !instance_exists(oClient)) {&#xA; x -= 32;&#xA; y += 48;&#xA;}" scaleX="1" scaleY="1" colour="4294967295" rotation="0"/>
<instance objName="oSlope4" x="448" y="224" name="inst_137025" locked="0" code="" scaleX="1" scaleY="1" colour="4294967295" rotation="0"/>
<instance objName="oSlope4" x="368" y="192" name="inst_137026" locked="0" code="" scaleX="1" scaleY="1" colour="4294967295" rotation="0"/>
<instance objName="oSlope4" x="272" y="32" name="inst_137027" locked="0" code="" scaleX="1" scaleY="1" colour="4294967295" rotation="0"/>
@ -96,7 +96,7 @@ if (global.lavastate &lt; 10) tile_layer_delete(-99);</code>
<instance objName="oSlopeFL1B" x="432" y="96" name="inst_137038" locked="0" code="" scaleX="1" scaleY="1" colour="4294967295" rotation="0"/>
<instance objName="oSlopeFL1B" x="512" y="592" name="inst_137039" locked="0" code="" scaleX="1" scaleY="1" colour="4294967295" rotation="0"/>
<instance objName="oSlopeFL1" x="544" y="576" name="inst_137040" locked="0" code="" scaleX="1" scaleY="1" colour="4294967295" rotation="0"/>
<instance objName="oSlopeFL2" x="368" y="240" name="inst_137041" locked="0" code="&#xA;if (global.lavastate &gt;= 9) {&#xA; x -= 32;&#xA; y += 48;&#xA;}&#xA;" scaleX="1" scaleY="1" colour="4294967295" rotation="0"/>
<instance objName="oSlopeFL2" x="368" y="240" name="inst_137041" locked="0" code="if (global.lavastate &gt;= 9 &amp;&amp; !instance_exists(oClient)) {&#xA; x -= 32;&#xA; y += 48;&#xA;}" scaleX="1" scaleY="1" colour="4294967295" rotation="0"/>
<instance objName="oSolid1" x="512" y="512" name="inst_137042" locked="0" code="" scaleX="8" scaleY="1" colour="4294967295" rotation="0"/>
<instance objName="oSolid1" x="464" y="528" name="inst_137043" locked="0" code="" scaleX="4" scaleY="1" colour="4294967295" rotation="0"/>
<instance objName="oSolid1" x="432" y="544" name="inst_137044" locked="0" code="" scaleX="3" scaleY="1" colour="4294967295" rotation="0"/>
@ -110,15 +110,15 @@ if (global.lavastate &lt; 10) tile_layer_delete(-99);</code>
<instance objName="oSolid1" x="0" y="608" name="inst_137052" locked="0" code="" scaleX="4" scaleY="1" colour="4294967295" rotation="0"/>
<instance objName="oSolid1" x="48" y="624" name="inst_137053" locked="0" code="" scaleX="4" scaleY="1" colour="4294967295" rotation="0"/>
<instance objName="oSolid1" x="0" y="544" name="inst_137054" locked="0" code="" scaleX="8" scaleY="1" colour="4294967295" rotation="0"/>
<instance objName="oSolid1" x="192" y="352" name="inst_137055" locked="0" code="&#xA;if (global.lavastate &gt;= 9) {&#xA; x -= 32;&#xA; y += 48;&#xA;}&#xA;if (global.lavastate &gt;= 10) instance_destroy();&#xA;" scaleX="1" scaleY="5" colour="4294967295" rotation="0"/>
<instance objName="oSolid1" x="208" y="320" name="inst_137056" locked="0" code="&#xA;if (global.lavastate &gt;= 9) {&#xA; x -= 32;&#xA; y += 48;&#xA;}&#xA;" scaleX="1" scaleY="6" colour="4294967295" rotation="0"/>
<instance objName="oSolid1" x="224" y="288" name="inst_137057" locked="0" code="&#xA;if (global.lavastate &gt;= 9) {&#xA; x -= 32;&#xA; y += 48;&#xA;}&#xA;" scaleX="1" scaleY="3" colour="4294967295" rotation="0"/>
<instance objName="oSolid1" x="240" y="256" name="inst_137058" locked="0" code="&#xA;if (global.lavastate &gt;= 9) {&#xA; x -= 32;&#xA; y += 48;&#xA;}&#xA;" scaleX="8" scaleY="9" colour="4294967295" rotation="0"/>
<instance objName="oSolid1" x="256" y="240" name="inst_137059" locked="0" code="&#xA;if (global.lavastate &gt;= 9) {&#xA; x -= 32;&#xA; y += 48;&#xA;}&#xA;" scaleX="7" scaleY="1" colour="4294967295" rotation="0"/>
<instance objName="oSolid1" x="368" y="336" name="inst_137060" locked="0" code="&#xA;if (global.lavastate &gt;= 9) {&#xA; x -= 32;&#xA; y += 48;&#xA;}&#xA;" scaleX="1" scaleY="4" colour="4294967295" rotation="0"/>
<instance objName="oSolid1" x="208" y="416" name="inst_137061" locked="0" code="&#xA;if (global.lavastate &gt;= 9) {&#xA; x -= 32;&#xA; y += 48;&#xA;}&#xA;" scaleX="4" scaleY="2" colour="4294967295" rotation="0"/>
<instance objName="oSolid1" x="272" y="416" name="inst_137062" locked="0" code="&#xA;if (global.lavastate &gt;= 9) {&#xA; x -= 32;&#xA; y += 48;&#xA;}&#xA;" scaleX="1" scaleY="1" colour="4294967295" rotation="0"/>
<instance objName="oSolid1" x="272" y="400" name="inst_137063" locked="0" code="&#xA;if (global.lavastate &gt;= 9) {&#xA; x -= 32;&#xA; y += 48;&#xA;}&#xA;" scaleX="4" scaleY="1" colour="4294967295" rotation="0"/>
<instance objName="oSolid1" x="192" y="352" name="inst_137055" locked="0" code="if (global.lavastate &gt;= 9 &amp;&amp; !instance_exists(oClient)) {&#xA; x -= 32;&#xA; y += 48;&#xA;}&#xA;if (global.lavastate &gt;= 10) instance_destroy();" scaleX="1" scaleY="5" colour="4294967295" rotation="0"/>
<instance objName="oSolid1" x="208" y="320" name="inst_137056" locked="0" code="if (global.lavastate &gt;= 9 &amp;&amp; !instance_exists(oClient)) {&#xA; x -= 32;&#xA; y += 48;&#xA;}" scaleX="1" scaleY="6" colour="4294967295" rotation="0"/>
<instance objName="oSolid1" x="224" y="288" name="inst_137057" locked="0" code="&#xA;if (global.lavastate &gt;= 9 &amp;&amp; !instance_exists(oClient)) {&#xA; x -= 32;&#xA; y += 48;&#xA;}&#xA;" scaleX="1" scaleY="3" colour="4294967295" rotation="0"/>
<instance objName="oSolid1" x="240" y="256" name="inst_137058" locked="0" code="&#xA;if (global.lavastate &gt;= 9 &amp;&amp; !instance_exists(oClient)) {&#xA; x -= 32;&#xA; y += 48;&#xA;}&#xA;" scaleX="8" scaleY="9" colour="4294967295" rotation="0"/>
<instance objName="oSolid1" x="256" y="240" name="inst_137059" locked="0" code="&#xA;if (global.lavastate &gt;= 9 &amp;&amp; !instance_exists(oClient)) {&#xA; x -= 32;&#xA; y += 48;&#xA;}&#xA;" scaleX="7" scaleY="1" colour="4294967295" rotation="0"/>
<instance objName="oSolid1" x="368" y="336" name="inst_137060" locked="0" code="if (global.lavastate &gt;= 9 &amp;&amp; !instance_exists(oClient)) {&#xA; x -= 32;&#xA; y += 48;&#xA;}" scaleX="1" scaleY="4" colour="4294967295" rotation="0"/>
<instance objName="oSolid1" x="208" y="416" name="inst_137061" locked="0" code="if (global.lavastate &gt;= 9 &amp;&amp; !instance_exists(oClient)) {&#xA; x -= 32;&#xA; y += 48;&#xA;}" scaleX="4" scaleY="2" colour="4294967295" rotation="0"/>
<instance objName="oSolid1" x="272" y="416" name="inst_137062" locked="0" code="if (global.lavastate &gt;= 9 &amp;&amp; !instance_exists(oClient)) {&#xA; x -= 32;&#xA; y += 48;&#xA;}" scaleX="1" scaleY="1" colour="4294967295" rotation="0"/>
<instance objName="oSolid1" x="272" y="400" name="inst_137063" locked="0" code="if (global.lavastate &gt;= 9 &amp;&amp; !instance_exists(oClient)) {&#xA; x -= 32;&#xA; y += 48;&#xA;}" scaleX="4" scaleY="1" colour="4294967295" rotation="0"/>
<instance objName="oSolid1" x="208" y="512" name="inst_137064" locked="0" code="" scaleX="11" scaleY="5" colour="4294967295" rotation="0"/>
<instance objName="oSolid1" x="240" y="496" name="inst_137065" locked="0" code="" scaleX="1" scaleY="1" colour="4294967295" rotation="0"/>
<instance objName="oSolid1" x="256" y="496" name="inst_137066" locked="0" code="" scaleX="1" scaleY="1" colour="4294967295" rotation="0"/>
@ -140,8 +140,8 @@ if (global.lavastate &lt; 10) tile_layer_delete(-99);</code>
<instance objName="oSolid1" x="144" y="304" name="inst_137082" locked="0" code="" scaleX="1" scaleY="11" colour="4294967295" rotation="0"/>
<instance objName="oSolid1" x="160" y="256" name="inst_137083" locked="0" code="" scaleX="1" scaleY="4" colour="4294967295" rotation="0"/>
<instance objName="oSolid1" x="176" y="208" name="inst_137084" locked="0" code="" scaleX="1" scaleY="4" colour="4294967295" rotation="0"/>
<instance objName="oSolid1" x="384" y="320" name="inst_137085" locked="0" code="&#xA;if (global.lavastate &gt;= 9) {&#xA; x -= 32;&#xA; y += 48;&#xA;}&#xA;" scaleX="2" scaleY="2" colour="4294967295" rotation="0"/>
<instance objName="oSolid1" x="384" y="272" name="inst_137086" locked="0" code="&#xA;if (global.lavastate &gt;= 9) {&#xA; x -= 32;&#xA; y += 48;&#xA;}&#xA;" scaleX="3" scaleY="3" colour="4294967295" rotation="0"/>
<instance objName="oSolid1" x="384" y="320" name="inst_137085" locked="0" code="if (global.lavastate &gt;= 9 &amp;&amp; !instance_exists(oClient)) {&#xA; x -= 32;&#xA; y += 48;&#xA;}" scaleX="2" scaleY="2" colour="4294967295" rotation="0"/>
<instance objName="oSolid1" x="384" y="272" name="inst_137086" locked="0" code="if (global.lavastate &gt;= 9 &amp;&amp; !instance_exists(oClient)) {&#xA; x -= 32;&#xA; y += 48;&#xA;}" scaleX="3" scaleY="3" colour="4294967295" rotation="0"/>
<instance objName="oSolid1" x="432" y="384" name="inst_137087" locked="0" code="" scaleX="1" scaleY="1" colour="4294967295" rotation="0"/>
<instance objName="oSolid1" x="432" y="368" name="inst_137088" locked="0" code="" scaleX="1" scaleY="1" colour="4294967295" rotation="0"/>
<instance objName="oSolid1" x="448" y="368" name="inst_137089" locked="0" code="" scaleX="1" scaleY="1" colour="4294967295" rotation="0"/>

@ -14,7 +14,7 @@
global.mapoffsety = 52;
global.waterlevel = 0;
global.floormaterial = 1;
if (global.lavastate == 9) make_liquid(1, 400, 0, 0, 0, 0, 0);</code>
if (global.lavastate == 9 &amp;&amp; !instance_exists(oClient)) make_liquid(1, 400, 0, 0, 0, 0, 0);</code>
<enableViews>-1</enableViews>
<clearViewBackground>-1</clearViewBackground>
<clearDisplayBuffer>0</clearDisplayBuffer>

@ -15,11 +15,11 @@ global.mapoffsety = 55;
global.floormaterial = 1;
global.waterlevel = 0;
global.watertype = 0;
if (global.lavastate &lt;= 8) {
if (global.lavastate &lt;= 9) {
make_liquid(1, 200, 0, 0, 0, 0, 0);
tile_layer_delete(-98);
}
if (global.lavastate &gt; 8) tile_layer_delete(-99);</code>
if (global.lavastate &gt; 9) tile_layer_delete(-99);</code>
<enableViews>-1</enableViews>
<clearViewBackground>-1</clearViewBackground>
<clearDisplayBuffer>0</clearDisplayBuffer>
@ -239,7 +239,7 @@ if (global.lavastate &gt; 8) tile_layer_delete(-99);</code>
<instance objName="oSolid1" x="416" y="320" name="inst_138060" locked="0" code="" scaleX="2" scaleY="4" colour="4294967295" rotation="0"/>
<instance objName="oSolid1" x="448" y="336" name="inst_138061" locked="0" code="" scaleX="1" scaleY="2" colour="4294967295" rotation="0"/>
<instance objName="oSolid1" x="272" y="288" name="inst_138062" locked="0" code="" scaleX="1" scaleY="1" colour="4294967295" rotation="0"/>
<instance objName="oSolid1" x="448" y="320" name="inst_138063" locked="0" code="&#xA;if (global.lavastate &gt; 8) instance_destroy();&#xA;" scaleX="3" scaleY="1" colour="4294967295" rotation="0"/>
<instance objName="oSolid1" x="448" y="320" name="inst_138063" locked="0" code="&#xA;if (global.lavastate &gt; 9) instance_destroy();&#xA;" scaleX="3" scaleY="1" colour="4294967295" rotation="0"/>
<instance objName="oSolid1" x="336" y="288" name="inst_138064" locked="0" code="" scaleX="2" scaleY="4" colour="4294967295" rotation="0"/>
<instance objName="oSolid1" x="320" y="320" name="inst_138065" locked="0" code="" scaleX="1" scaleY="1" colour="4294967295" rotation="0"/>
<instance objName="oSolid1" x="288" y="464" name="inst_138066" locked="0" code="" scaleX="1" scaleY="1" colour="4294967295" rotation="0"/>
@ -263,7 +263,7 @@ if (global.lavastate &gt; 8) tile_layer_delete(-99);</code>
<instance objName="oSolid1" x="320" y="368" name="inst_138084" locked="0" code="" scaleX="1" scaleY="1" colour="4294967295" rotation="0"/>
<instance objName="oSolid1" x="320" y="384" name="inst_138085" locked="0" code="" scaleX="1" scaleY="1" colour="4294967295" rotation="0"/>
<instance objName="oSolid1" x="288" y="400" name="inst_138086" locked="0" code="" scaleX="1" scaleY="1" colour="4294967295" rotation="0"/>
<instance objName="oSolid1" x="336" y="384" name="inst_138087" locked="0" code="&#xA;if (global.lavastate &gt; 8) instance_destroy();&#xA;" scaleX="6" scaleY="1" colour="4294967295" rotation="0"/>
<instance objName="oSolid1" x="336" y="384" name="inst_138087" locked="0" code="&#xA;if (global.lavastate &gt; 9) instance_destroy();&#xA;" scaleX="6" scaleY="1" colour="4294967295" rotation="0"/>
<instance objName="oSolid1" x="112" y="272" name="inst_138088" locked="0" code="" scaleX="1" scaleY="1" colour="4294967295" rotation="0"/>
<instance objName="oSolid1" x="80" y="224" name="inst_138089" locked="0" code="" scaleX="1" scaleY="1" colour="4294967295" rotation="0"/>
<instance objName="oSolid1" x="128" y="448" name="inst_138090" locked="0" code="" scaleX="1" scaleY="1" colour="4294967295" rotation="0"/>

@ -1,6 +1,6 @@
/// draw_character(sprite, x, y, sprite2, s2ox, s2oy, sprite3, s3ox, s3oy, s3angle, facing, color, alpha, s3show)
if(global.shaders_compiled){
if(shader_is_compiled(shd_pal_swapper)){
if ((oControl.mod_fusion) && (!oControl.msr_fusionsuit)) { // Fusion suit
if (global.currentsuit == 0) { // Power
pal_swap_set(sPalFusion0, 1, false);

@ -238,9 +238,9 @@ switch(argument0){
global.hijumpPrev = global.hijump;
}
if(global.hijump == 1){
popup_text("Hi jump enabled");
popup_text(get_text("Items", "HiJump") + " " + get_text("GlobalOptions", "Enabled"));
} else {
popup_text("Hi jump disabled");
popup_text(get_text("Items", "HiJump") + " " + get_text("GlobalOptions", "Disabled"));
}
} else if(global.onlineReceived[# 2, i] == 6 && global.receivedClientID == global.clientID){
global.hijumpPrev = global.hijump;
@ -252,9 +252,9 @@ switch(argument0){
global.spiderballPrev = global.spiderball;
}
if(global.spiderball == 1){
popup_text("Spiderball enabled");
popup_text(get_text("Items", "SpiderBall") + " " + get_text("GlobalOptions", "Enabled"));
} else {
popup_text("Spiderball disabled");
popup_text(get_text("Items", "SpiderBall") + " " + get_text("GlobalOptions", "Disabled"));
}
} else if(global.onlineReceived[# 2, i] == 7 && global.receivedClientID == global.clientID){
global.spiderballPrev = global.spiderball;
@ -266,9 +266,9 @@ switch(argument0){
global.speedboosterPrev = global.speedbooster;
}
if(global.speedbooster == 1){
popup_text("Speedbooster enabled");
popup_text(get_text("Items", "SpeedBooster") + " " + get_text("GlobalOptions", "Enabled"));
} else {
popup_text("Speedbooster disabled");
popup_text(get_text("Items", "SpeedBooster") + " " + get_text("GlobalOptions", "Disabled"));
}
} else if(global.onlineReceived[# 2, i] == 8 && global.receivedClientID == global.clientID){
global.speedboosterPrev = global.speedbooster;
@ -280,9 +280,9 @@ switch(argument0){
global.bombPrev = global.bomb;
}
if(global.bomb == 1){
popup_text("Bombs enabled");
popup_text(get_text("Items", "Bombs") + " " + get_text("GlobalOptions", "Enabled"));
} else {
popup_text("Bombs disabled");
popup_text(get_text("Items", "Bombs") + " " + get_text("GlobalOptions", "Disabled"));
}
} else if(global.onlineReceived[# 2, i] == 9 && global.receivedClientID == global.clientID){
global.bombPrev = global.bomb;
@ -294,9 +294,9 @@ switch(argument0){
global.ibeamPrev = global.ibeam;
}
if(global.ibeam == 1){
popup_text("Ice beam enabled");
popup_text(get_text("Items", "IceBeam") + " " + get_text("GlobalOptions", "Enabled"));
} else {
popup_text("Ice beam disabled");
popup_text(get_text("Items", "IceBeam") + " " + get_text("GlobalOptions", "Disabled"));
}
} else if(global.onlineReceived[# 2, i] == 10 && global.receivedClientID == global.clientID){
global.ibeamPrev = global.ibeam;
@ -308,9 +308,9 @@ switch(argument0){
global.wbeamPrev = global.wbeam;
}
if(global.wbeam == 1){
popup_text("Wave beam enabled");
popup_text(get_text("Items", "WaveBeam") + " " + get_text("GlobalOptions", "Enabled"));
} else {
popup_text("Wave beam disabled");
popup_text(get_text("Items", "WaveBeam") + " " + get_text("GlobalOptions", "Disabled"));
}
} else if(global.onlineReceived[# 2, i] == 11 && global.receivedClientID == global.clientID){
global.wbeamPrev = global.wbeam;
@ -322,9 +322,9 @@ switch(argument0){
global.pbeamPrev = global.pbeam;
}
if(global.pbeam == 1){
popup_text("Plasma beam enabled");
popup_text(get_text("Items", "PlasmaBeam") + " " + get_text("GlobalOptions", "Enabled"));
} else {
popup_text("Plasma beam disabled");
popup_text(get_text("Items", "PlasmaBeam") + " " + get_text("GlobalOptions", "Disabled"));
}
} else if(global.onlineReceived[# 2, i] == 12 && global.receivedClientID == global.clientID){
global.pbeamPrev = global.pbeam;
@ -336,9 +336,9 @@ switch(argument0){
global.sbeamPrev = global.sbeam;
}
if(global.sbeam == 1){
popup_text("Spazer beam enabled");
popup_text(get_text("Items", "SpazerBeam") + " " + get_text("GlobalOptions", "Enabled"));
} else {
popup_text("Spazer beam disabled");
popup_text(get_text("Items", "SpazerBeam") + " " + get_text("GlobalOptions", "Disabled"));
}
} else if(global.onlineReceived[# 2, i] == 13 && global.receivedClientID == global.clientID){
global.sbeamPrev = global.sbeam;
@ -350,9 +350,9 @@ switch(argument0){
global.cbeamPrev = global.cbeam;
}
if(global.cbeam == 1){
popup_text("Charge beam enabled");
popup_text(get_text("Items", "ChargeBeam") + " " + get_text("GlobalOptions", "Enabled"));
} else {
popup_text("Charge beam disabled");
popup_text(get_text("Items", "ChargeBeam") + " " + get_text("GlobalOptions", "Disabled"));
}
} else if(global.onlineReceived[# 2, i] == 14 && global.receivedClientID == global.clientID){
global.cbeamPrev = global.cbeam;
@ -431,11 +431,11 @@ switch(argument0){
global.currentsuitPrev = global.currentsuit;
}
if(global.currentsuit == 2){
popup_text("Gravity suit enabled");
popup_text(get_text("Items", "GravitySuit") + " " + get_text("GlobalOptions", "Enabled"));
} else if(global.currentsuit == 1){
popup_text("Varia suit enabled");
popup_text(get_text("Items", "VariaSuit") + " " + get_text("GlobalOptions", "Enabled"));
} else if(global.currentsuit == 0){
popup_text("Power suit enabled");
popup_text(get_text("ItemsMenu", "PowerSuit") + " " + get_text("GlobalOptions", "Enabled"));
}
} else if(global.onlineReceived[# 2, i] == 18 && global.receivedClientID == global.clientID){
global.currentsuitPrev = global.currentsuit;

Loading…
Cancel
Save