1 |
draw_self(); |
2 |
if (rotate == true) |
3 |
{ |
4 |
image_index = 0; |
5 |
if (left == true) |
6 |
draw_sprite_ext(spr_rotationController_directions, 0, x + 6, y + 20, 2, 2, 0, c_white, 1); |
7 |
if (right == true) |
8 |
draw_sprite_ext(spr_rotationController_directions, 2, x + 6, y + 20, 2, 2, 0, c_white, 1); |
9 |
if (down == true) |
10 |
draw_sprite_ext(spr_rotationController_directions, 1, x + 6, y + 20, 2, 2, 0, c_white, 1); |
11 |
} |
12 |
else |
13 |
{ |
14 |
image_index = 1; |
15 |
} |
16 |
if (rotate == true && blocked == 0) |
17 |
inUse = true; |
18 |
else |
19 |
inUse = false; |
20 |
if (i_ex(obj_controller_city_mice3)) |
21 |
{ |
22 |
if (obj_controller_city_mice3.micescore > 2) |
23 |
inUse = 0; |
24 |
} |
25 |
if (instructionLerp > 0 || inUse) |
26 |
{ |
27 |
if (instructionLerp < 1 && inUse) |
28 |
instructionLerp += 0.1; |
29 |
else if (!inUse) |
30 |
instructionLerp -= 0.1; |
31 |
var _easedLerp = scr_ease_outscr_ease_outfunction scr_ease_out(arg0, arg1)
{
if (arg1 < -3 || arg1 > 7)
return arg0;
switch (arg1)
{
case -3:
return ease_out_bounce(arg0, 0, 1, 1);
case -2:
return ease_out_elastic(arg0, 0, 1, 1);
case -1:
return ease_out_back(arg0, 0, 1, 1);
case 0:
return arg0;
case 1:
return sin(arg0 * 1.5707963267948966);
case 2:
return -arg0 * (arg0 - 2);
case 6:
return -power(2, -10 * arg0) + 1;
case 7:
arg0--;
return sqrt(1 - (arg0 * arg0));
default:
arg0--;
if (arg1 == 4)
{
return -1 * (power(arg0, arg1) - 1);
break;
}
return power(arg0, arg1) + 1;
}
} (instructionLerp, 3); |
32 |
scr_84_set_draw_font("mainbig"); |
33 |
draw_set_halign(fa_left); |
34 |
draw_set_color(c_white); |
35 |
scr_84_draw_text_outlinescr_84_draw_text_outlinefunction scr_84_draw_text_outline(arg0, arg1, arg2)
{
var xx = arg0;
var yy = arg1;
var str = arg2;
var __txtcolor__ = draw_get_color();
draw_set_colour(c_black);
draw_text(xx - 1, yy - 1, str);
draw_text(xx + 1, yy - 1, str);
draw_text(xx - 1, yy + 1, str);
draw_text(xx + 1, yy + 1, str);
draw_set_colour(__txtcolor__);
draw_text(xx, yy, str);
} ((camerax() - 80) + (_easedLerp * 100), cameray() + 400, stringsetloc([Left Wait for input Right]"[Left / Right]", "obj_controller_city_mice2_slash_Draw_0_gml_28_0" )); |
36 |
scr_84_draw_text_outlinescr_84_draw_text_outlinefunction scr_84_draw_text_outline(arg0, arg1, arg2)
{
var xx = arg0;
var yy = arg1;
var str = arg2;
var __txtcolor__ = draw_get_color();
draw_set_colour(c_black);
draw_text(xx - 1, yy - 1, str);
draw_text(xx + 1, yy - 1, str);
draw_text(xx - 1, yy + 1, str);
draw_text(xx + 1, yy + 1, str);
draw_set_colour(__txtcolor__);
draw_text(xx, yy, str);
} ((camerax() - 80) + (_easedLerp * 100), cameray() + 432, stringsetloc(Rotate"Rotate", "obj_controller_city_mice2_slash_Draw_0_gml_29_0" )); |
37 |
draw_set_halign(fa_right); |
38 |
scr_84_draw_text_outlinescr_84_draw_text_outlinefunction scr_84_draw_text_outline(arg0, arg1, arg2)
{
var xx = arg0;
var yy = arg1;
var str = arg2;
var __txtcolor__ = draw_get_color();
draw_set_colour(c_black);
draw_text(xx - 1, yy - 1, str);
draw_text(xx + 1, yy - 1, str);
draw_text(xx - 1, yy + 1, str);
draw_text(xx + 1, yy + 1, str);
draw_set_colour(__txtcolor__);
draw_text(xx, yy, str);
} ((camerax() + 720) - (_easedLerp * 100), cameray() + 400, stringsetloc([Down]"[Down]", "obj_controller_city_mice2_slash_Draw_0_gml_32_0" )); |
39 |
scr_84_draw_text_outlinescr_84_draw_text_outlinefunction scr_84_draw_text_outline(arg0, arg1, arg2)
{
var xx = arg0;
var yy = arg1;
var str = arg2;
var __txtcolor__ = draw_get_color();
draw_set_colour(c_black);
draw_text(xx - 1, yy - 1, str);
draw_text(xx + 1, yy - 1, str);
draw_text(xx - 1, yy + 1, str);
draw_text(xx + 1, yy + 1, str);
draw_set_colour(__txtcolor__);
draw_text(xx, yy, str);
} ((camerax() + 720) - (_easedLerp * 100), cameray() + 432, stringsetloc(Mice"Mice", "obj_controller_city_mice2_slash_Draw_0_gml_33_0" )); |
40 |
draw_set_halign(fa_left); |
41 |
} |