sSwitchPlatfrm
0
-1
0
0
Wall
<undefined>
1
603
7
0
0
-1
2
self
0
0
1
///Initialize
image_speed = 0;
angle = 0;
1
603
7
0
0
-1
2
self
0
0
1
///Toggle the switch
if(place_meeting(x, y - 1, Player)) {
if(input_check_pressed("action")) {
image_index = !image_index;
state_set(S_NOLIGHTS);
state_set(S_LIGHTS);
}
} else {
if(!Controller.colours[YELLOW]) {
image_index = 0;
}
}
1
603
7
0
0
-1
2
self
0
0
1
///Draw the dot and arrow
draw_self();
if(Controller.colours[YELLOW]) {
if(image_index) {
draw_set_color(c_yellow);
} else {
draw_set_color(c_red);
}
} else {
draw_set_color(c_red);
}
if(Controller.colours[RED]) {
draw_circle(x + 32, y, 2, false);
}
angle = (angle + 8) % 360;
if(place_meeting(x, y - 1, Player)) {
draw_set_color(image_blend);
draw_set_font(fControls);
draw_set_halign(fa_center);
draw_text(x + 32, y - 64 + floor(sin(degtorad(angle)) * 5), DOWN_CHAR);
draw_set_halign(fa_left);
}
0
0
0
0.5
0.100000001490116
0
0.100000001490116
0.100000001490116
0.200000002980232
-1
0
0,16
32,32