sMapPlayer
0
-1
-10
0
<undefined>
<undefined>
1
603
7
0
0
-1
2
self
0
0
1
x = global.mapposx * 8;
y = global.mapposy * 8;
y += 32;
view_xview[0] = x - 160;
view_yview[0] = y - 120;
image_speed = 0.2;
visible = false;
alarm[0] = 2;
active = 0;
alarm[1] = 5;
state = 0;
if (global.mapmarker == 1) {
state = 2;
marker = instance_create(x, y, oMapMarker);
marker.editing = 0;
} else state = 0;
keycounter = 0;
camera = instance_create(x + 4, y + 4, oMapCamera);
view_object[0] = camera;
1
603
7
0
0
-1
2
self
0
0
1
with (oControl) event_user(2);
with (camera) instance_destroy();
if (global.mapmarker == 1) with (marker) instance_destroy();
view_xview[0] = 0;
view_yview[0] = 0;
1
603
7
0
0
-1
2
self
0
0
1
active = 1;
1
603
7
0
0
-1
2
self
0
0
1
visible = true;
1
603
7
0
0
-1
2
self
0
0
1
if (image_alpha > -1) image_alpha -= 0.02;
if (image_alpha <= 0) image_alpha = 1;
if (active) {
if (state == 0 || state == 2) {
oSS_Control.canchange = 1;
if (oControl.kMenu1 && oControl.kMenu1PushedSteps == 0) {
if (state == 0) {
global.mapmarkerx = global.mapposx;
global.mapmarkery = global.mapposy;
global.mapmarker = 1;
marker = instance_create(x, y, oMapMarker);
}
marker.editing = 1;
state = 1;
sfx_play(sndMenuMove);
exit;
}
depth = -10;
}
if (state == 1) {
oSS_Control.canchange = 0;
if (oControl.kUp > 0 && keycounter == 1) {
global.mapmarkery -= 1;
if (global.mapmarkery < 3) global.mapmarkery = 3;
with (marker) event_user(0);
}
if (oControl.kDown > 0 && keycounter == 1) {
global.mapmarkery += 1;
if (global.mapmarkery > 59) global.mapmarkery = 59;
with (marker) event_user(0);
}
if (oControl.kLeft > 0 && keycounter == 1) {
global.mapmarkerx -= 1;
if (global.mapmarkerx < 3) global.mapmarkerx = 3;
with (marker) event_user(0);
}
if (oControl.kRight > 0 && keycounter == 1) {
global.mapmarkerx += 1;
if (global.mapmarkerx > 76) global.mapmarkerx = 76;
with (marker) event_user(0);
}
if (oControl.kMenu1 && oControl.kMenu1PushedSteps == 0) {
state = 2;
marker.editing = 0;
with (camera) event_user(0);
sfx_play(sndMenuMove);
exit;
}
if (oControl.kMenu2 && oControl.kMenu2PushedSteps == 0) {
state = 0;
global.mapmarker = 0;
with (marker) instance_destroy();
with (camera) event_user(0);
sfx_play(sndMenuMove);
}
depth = -5;
} // if (state == 1)
if (state == 1 && (oControl.kUp > 0 || oControl.kDown > 0 || oControl.kLeft > 0 || oControl.kRight > 0)) {
keycounter += 1;
if (keycounter > 8) keycounter = 0;
} else keycounter = 0;
} // if (active)
0
0
0
0.5
0.100000001490116
0
0.100000001490116
0.100000001490116
0.200000002980232
-1
-1