sMapPlayer
0
-1
1
-1
<undefined>
sMask1
1
603
7
0
0
-1
2
self
0
0
1
characterCreateEvent();
mAnimSpd = 0;
activation_code = false;
// DEBUG
//instance_create(x, y-90, oAreaIntro);
1
603
7
0
0
-1
2
self
0
0
1
surface_free(surf);
1
603
7
0
0
-1
2
self
0
0
1
activation_code = true;
alarm[11] = 12;
1
603
7
0
0
-1
2
self
0
0
1
/// Gravity suit change
if (global.SuitChange) {
event_user(0);
}
else {
global.currentsuit = 2;
}
1
603
7
0
0
-1
2
self
0
0
1
/// Enable control
global.enablecontrol = 1;
1
603
7
0
0
-1
2
self
0
0
1
/// Stop speed boost audio
if (speedboost) {
sfx_stop(sndSBStart);
sfx_loop(sndSBLoop);
}
1
603
7
0
0
-1
2
self
0
0
1
/// Suit change
if (global.SuitChange) {
if(global.currentsuit == 0) event_user(0);
}
else scr_variasuitswap();
1
603
7
0
0
-1
2
self
0
0
1
/// start player death transition
with (oControl) event_user(1);
1
603
7
0
0
-1
2
self
0
0
1
/// Surface drawing
if (facing == RIGHT || facing == 0) mirror = 1;
if (facing == LEFT) mirror = -1;
draw_character_to_surface();
if (global.godmode) {
global.missiles = global.maxmissiles;
global.smissiles = global.maxsmissiles;
global.pbombs = global.maxpbombs;
global.playerhealth = global.maxhealth;
}
1
603
7
0
0
-1
2
self
0
0
1
/// Activation/deactivation
if(activation_code) {
instance_activate_region(view_xview[0] - 300, view_yview[0] - 300, view_wview[0] + 600, view_hview[0] + 600, 1);
if (global.objdeactivate) instance_deactivate_object(oSolid);
instance_activate_object(oMovingSolid);
if (global.objdeactivate) instance_deactivate_object(oEnemy);
instance_deactivate_object(oGotoRoom);
instance_activate_region(view_xview[0] - 200, view_yview[0] - 200, view_wview[0] + 400, view_hview[0] + 400, 1);
instance_activate_region(x - 64, y - 64, 128, 128, 1);
instance_activate_object(oGravitt);
activation_code = false;
}
1
603
7
0
0
-1
2
self
0
0
1
//if (global.currentsuit == 2) { visible = false; }
//else if (visible == false) { visible = true; }
var block_id;
if (room != rm_transition) {
characterStepEvent();
prevmapposx = global.mapposx;
prevmapposy = global.mapposy;
global.myposx = floor(x / 320);
global.myposy = floor((y - 8) / 240);
global.mapposx = global.myposx + global.mapoffsetx;
global.mapposy = global.myposy + global.mapoffsety;
if (global.dmap[global.mapposx, global.mapposy] == 0) global.dmap[global.mapposx, global.mapposy] = 1;
if (prevmapposx != global.mapposx || prevmapposy != global.mapposy) with (oControl) event_user(2);
} else image_speed = 0;
//
block_id = -4;
if (instance_exists(oBlockStep)) {
if (platformCharacterIs(ON_GROUND)) {
if (dash == 0) {
block_id = collision_line(x - 6, y + 1, x + 6, y + 1, oBlockStep, false, true);
} else {
block_id = collision_point(x, y + 1, oBlockStep, false, true);
if (block_id != -4 && y < block_id.y + 2) with (block_id) sboost = 1;
}
if (block_id != -4 && y < block_id.y + 2) with (block_id) event_user(0);
} else if (state == GRIP) {
if (facing == RIGHT) {
block_id = collision_point(x + 8, y - 24, oBlockStep, false, true);
} else block_id = collision_point(x - 8, y - 24, oBlockStep, false, true);
if (block_id != -4) with (block_id) event_user(0);
}
}
//
if (instance_exists(empspark)) {
if (turning == 0 && morphing == 0 && unmorphing == 0 && walljumping == 0
&& (state == STANDING || state == RUNNING || state == DUCKING || state == JUMPING && vjump == 1)
|| state == GRIP && (facing == RIGHT && aimdirection != 0 || facing == LEFT && aimdirection != 1)
) {
empspark.x = x + aspr2x;
empspark.y = y + aspr2y;
}
}
1
603
7
0
0
-1
2
self
0
0
1
if ((state == BALL || state == AIRBALL || state == SPIDERBALL) && other.image_index == 1 && monster_drain == 0) {
if (isCollisionTop(6) == 0) {
yVel = -5;
} else if (isCollisionTop(5) == 0) {
yVel = -4;
} else if (isCollisionTop(4) == 0) {
yVel = -3;
} else if (isCollisionTop(3) == 0) {
yVel = -2;
} else if (isCollisionTop(2) == 0) {
yVel = -1;
}
state = AIRBALL;
sball = 0;
statetime = 0;
if (x < other.x - 2) {
facing = LEFT;
fixedx = 12;
}
if (x > other.x + 2) {
facing = RIGHT;
fixedx = 12;
}
fixedy = 20;
}
1
603
7
0
0
-1
2
self
0
0
1
/// GravitySuitChangeFX
instance_create(160, 160, oGravitySuitChangeFX);
state = IDLE;
facing = 0;
juststarted = 150;
canrun = 0;
xVel = 0;
yVel = 0;
1
603
7
0
0
-1
2
self
0
0
1
/// SuitChangeFX
instance_create(x, y, oSuitChangeFX);
state = IDLE;
facing = 0;
juststarted = 400;
canrun = 0;
xVel = 0;
yVel = 0;
1
603
7
0
0
-1
2
self
0
0
1
if (turning == 1) turning = 0;
if (landing == 1) landing = 0;
if (morphing == 1) morphing = 0;
if (unmorphing == 1) unmorphing = 0;
if (walljumping == 1) {
walljumping = 0;
if (aimlock == 0) canturn = 1;
yVel = -6 + (inwater && global.currentsuit != 2) * 1.5;
if (facing == LEFT) {
xAcc = -2;
x -= 2;
}
if (facing == RIGHT) {
xAcc = 2;
x += 2;
}
image_index = 2;
statetime = 0;
hijump = 1;
LoopSoundMono(spinjump_sound);
}
if (state == JUMPING && vjump == 1) {
image_single = 4;
image_speed = 0;
}
if (state == BRAKING) {
state = STANDING;
statetime = 0;
if (aimlock == 0) canturn = 1;
}
if (state == SJSTART) {
image_index = 3;
image_speed = 0;
}
if (state == SUPERJUMP && sjdir == 0) {
image_index = 1;
}
if (state == HURT) {
if (sjball == 0) {
state = JUMPING;
vjump = 1;
}
if (sjball == 1) state = AIRBALL;
statetime = 20;
if (aimlock == 0) canturn = 1;
sjball = 0;
cmhurt = 20;
}
if (state == IDLE && facing != 0) {
canrun = 1;
state = RUNNING;
statetime = 0;
}
1
603
7
0
0
-1
2
self
0
0
1
sfx_stop(sndXMorph1);
sfx_stop(sndAbsorbX);
1
603
7
0
0
-1
2
self
0
0
1
if (room != rm_transition) {
x = global.targetx + global.offsetx;
y = global.targety + global.offsety;
if (global.event[304] == 1) {
if (!instance_exists(oHatchling) && !instance_exists(oHatchlingIntro)) {
instance_create(x, y - 16, oHatchling);
}
}
if (oControl.mod_earlybaby == 1 && global.event[304] == 0 && !instance_exists(oHatchling) && room_get_name(room) != 'rm_a7c01') instance_create(x, y - 16, oHatchling);
spawn_random_septogg(1, max(1, floor(room_width/500), floor(room_height/500)), 18);
alarm[11] = 1;
}
xGlow = 0;
1
603
7
0
0
-1
2
self
0
0
1
characterDrawEvent();
1
603
7
0
0
-1
2
self
0
0
1
/*
if (file_exists(working_directory + "\cheats\godemode"))
{
if (global.godmode == 0) { global.godmode = 1; }
else global.godmode = 0
}
1
603
7
0
0
-1
2
self
0
0
1
if (file_exists(working_directory + "\cheats\fusion"))
{
if (oControl.mod_fusion == 1) oControl.mod_fusion = 0;
else oControl.mod_fusion = 1;
}
/*if (file_exists(working_directory + "\cheats\itemprintout")) scr_ini_write();
1
603
7
0
0
-1
2
self
0
0
1
//Just used for debugging. Used to force a breakpoint.
var t = 0;
0
0
0
0.5
0.100000001490116
0
0.100000001490116
0.100000001490116
0.200000002980232
-1
-1