sEDCam
0
0
-500
0
<undefined>
<undefined>
1
603
7
0
0
-1
2
self
0
0
1
inactive_steps = 0;
targetx = oCharacter.x;
targety = oCharacter.y - 12;
1
603
7
0
0
-1
2
self
0
0
1
/// Camera restrictions
if (oControl.widescreen_space + 320 <= room_width) { // widescreen rooms prevent black bars
var limit = floor(oControl.widescreen_space/2)+160;
x = clamp(x, limit, room_width-limit);
}
else { // single-wide rooms
x = floor(room_width/2);
}
1
603
7
0
0
-1
2
self
0
0
1
if (!instance_exists(oAutoadPlayer)) inactive_steps += 1;
if (inactive_steps > 60) {
targetx = oCharacter.x;
targety = oCharacter.y - 12;
} else if (instance_exists(oAutoadPlayer)) {
targetx = oAutoadPlayer.x;
targety = oAutoadPlayer.y;
}
if (x != targetx) x += (targetx - x) / 8;
if (y != targety) y += (targety - y) / 8;
if (inactive_steps == 100) {
view_object[0] = oCamera;
with (oCharacter) {
state = 23;
statetime = 0;
morphing = 0;
turning = 0;
}
with (oAutoadControlTrigger) {
alarm[0] = 120;
active = 0;
activated = 0;
}
instance_destroy();
}
0
0
0
0.5
0.100000001490116
0
0.100000001490116
0.100000001490116
0.200000002980232
-1
-1