1 |
if (animtimer >= 8) |
2 |
animtimer = 0; |
3 |
image_index = floor(animtimer / 4); |
4 |
if (timer > 80) |
5 |
animtimer += 2; |
6 |
else |
7 |
animtimer++; |
8 |
if (loading > 0) |
9 |
{ |
10 |
loading--; |
11 |
if (loading == 30) |
12 |
{ |
13 |
} |
14 |
} |
15 |
for (i = 0; i < 4; i++) |
16 |
{ |
17 |
xx = lerp(xstart, x, i / 4); |
18 |
yy = lerp(ystart, y, i / 4); |
19 |
draw_sprite(sprite_index, 2, xx, yy); |
20 |
} |
21 |
if (timer > 0) |
22 |
image_angle += (timer / 6); |
23 |
hatx = lastx + scr_orbitxscr_orbitxfunction scr_orbitx(arg0, arg1, arg2, arg3, arg4)
{
if (arg4 == 0)
return arg2;
var __theta = point_direction(arg0, arg1, arg2, arg3);
var __radius = point_distance(arg0, arg1, arg2, arg3);
__theta += arg4;
return arg0 + lengthdir_x(__radius, __theta);
} (0, 0, -9, -17, lastangle); |
24 |
haty = lasty + scr_orbityscr_orbityfunction scr_orbity(arg0, arg1, arg2, arg3, arg4)
{
if (arg4 == 0)
return arg3;
var __theta = point_direction(arg0, arg1, arg2, arg3);
var __radius = point_distance(arg0, arg1, arg2, arg3);
__theta += arg4;
return arg1 + lengthdir_y(__radius, __theta);
} (0, 0, -9, -17, lastangle); |
25 |
var hatangle = (point_direction(hatx, haty, x + scr_orbitxscr_orbitxfunction scr_orbitx(arg0, arg1, arg2, arg3, arg4)
{
if (arg4 == 0)
return arg2;
var __theta = point_direction(arg0, arg1, arg2, arg3);
var __radius = point_distance(arg0, arg1, arg2, arg3);
__theta += arg4;
return arg0 + lengthdir_x(__radius, __theta);
} (0, 0, -9, -8, image_angle), y + scr_orbityscr_orbityfunction scr_orbity(arg0, arg1, arg2, arg3, arg4)
{
if (arg4 == 0)
return arg3;
var __theta = point_direction(arg0, arg1, arg2, arg3);
var __radius = point_distance(arg0, arg1, arg2, arg3);
__theta += arg4;
return arg1 + lengthdir_y(__radius, __theta);
} (0, 0, -9, -8, image_angle)) + 90) % 360; |
26 |
var hatx1 = hatx + scr_orbitxscr_orbitxfunction scr_orbitx(arg0, arg1, arg2, arg3, arg4)
{
if (arg4 == 0)
return arg2;
var __theta = point_direction(arg0, arg1, arg2, arg3);
var __radius = point_distance(arg0, arg1, arg2, arg3);
__theta += arg4;
return arg0 + lengthdir_x(__radius, __theta);
} (0, 0, -4, 0, hatangle); |
27 |
var haty1 = haty + scr_orbityscr_orbityfunction scr_orbity(arg0, arg1, arg2, arg3, arg4)
{
if (arg4 == 0)
return arg3;
var __theta = point_direction(arg0, arg1, arg2, arg3);
var __radius = point_distance(arg0, arg1, arg2, arg3);
__theta += arg4;
return arg1 + lengthdir_y(__radius, __theta);
} (0, 0, -4, 0, hatangle); |
28 |
var hatx2 = hatx + scr_orbitxscr_orbitxfunction scr_orbitx(arg0, arg1, arg2, arg3, arg4)
{
if (arg4 == 0)
return arg2;
var __theta = point_direction(arg0, arg1, arg2, arg3);
var __radius = point_distance(arg0, arg1, arg2, arg3);
__theta += arg4;
return arg0 + lengthdir_x(__radius, __theta);
} (0, 0, 5, 0, hatangle); |
29 |
var haty2 = haty + scr_orbityscr_orbityfunction scr_orbity(arg0, arg1, arg2, arg3, arg4)
{
if (arg4 == 0)
return arg3;
var __theta = point_direction(arg0, arg1, arg2, arg3);
var __radius = point_distance(arg0, arg1, arg2, arg3);
__theta += arg4;
return arg1 + lengthdir_y(__radius, __theta);
} (0, 0, 5, 0, hatangle); |
30 |
var headx1 = x + scr_orbitxscr_orbitxfunction scr_orbitx(arg0, arg1, arg2, arg3, arg4)
{
if (arg4 == 0)
return arg2;
var __theta = point_direction(arg0, arg1, arg2, arg3);
var __radius = point_distance(arg0, arg1, arg2, arg3);
__theta += arg4;
return arg0 + lengthdir_x(__radius, __theta);
} (0, 0, -18, -6, image_angle); |
31 |
var heady1 = y + scr_orbityscr_orbityfunction scr_orbity(arg0, arg1, arg2, arg3, arg4)
{
if (arg4 == 0)
return arg3;
var __theta = point_direction(arg0, arg1, arg2, arg3);
var __radius = point_distance(arg0, arg1, arg2, arg3);
__theta += arg4;
return arg1 + lengthdir_y(__radius, __theta);
} (0, 0, -18, -6, image_angle); |
32 |
var headx2 = x + scr_orbitxscr_orbitxfunction scr_orbitx(arg0, arg1, arg2, arg3, arg4)
{
if (arg4 == 0)
return arg2;
var __theta = point_direction(arg0, arg1, arg2, arg3);
var __radius = point_distance(arg0, arg1, arg2, arg3);
__theta += arg4;
return arg0 + lengthdir_x(__radius, __theta);
} (0, 0, 2, -10, image_angle); |
33 |
var heady2 = y + scr_orbityscr_orbityfunction scr_orbity(arg0, arg1, arg2, arg3, arg4)
{
if (arg4 == 0)
return arg3;
var __theta = point_direction(arg0, arg1, arg2, arg3);
var __radius = point_distance(arg0, arg1, arg2, arg3);
__theta += arg4;
return arg1 + lengthdir_y(__radius, __theta);
} (0, 0, 2, -10, image_angle); |
34 |
draw_set_color(c_white); |
35 |
draw_line(hatx1, haty1, headx1, heady1); |
36 |
draw_line(hatx2, haty2, headx2, heady2); |
37 |
draw_self(); |
38 |
draw_sprite_ext(sprite_index, 3, hatx, haty, 1, 1, hatangle, c_white, 1); |
39 |
lastx = x; |
40 |
lasty = y; |
41 |
lastangle = image_angle; |
42 |
if (bufferstate == 0 && loading == 0) |
43 |
{ |
44 |
var _af = scr_custom_afterimagescr_custom_afterimagefunction scr_custom_afterimage(arg0)
{
afterimage = instance_create(x, y, arg0);
afterimage.sprite_index = sprite_index;
afterimage.image_index = image_index;
afterimage.image_blend = image_blend;
afterimage.image_speed = 0;
afterimage.depth = depth + 1;
afterimage.image_xscale = image_xscale;
afterimage.image_yscale = image_yscale;
afterimage.image_angle = image_angle;
return afterimage;
} (obj_buffer_afterimage); |
45 |
_af.image_alpha = 0.5; |
46 |
_af = scr_custom_afterimagescr_custom_afterimagefunction scr_custom_afterimage(arg0)
{
afterimage = instance_create(x, y, arg0);
afterimage.sprite_index = sprite_index;
afterimage.image_index = image_index;
afterimage.image_blend = image_blend;
afterimage.image_speed = 0;
afterimage.depth = depth + 1;
afterimage.image_xscale = image_xscale;
afterimage.image_yscale = image_yscale;
afterimage.image_angle = image_angle;
return afterimage;
} (obj_buffer_afterimage); |
47 |
_af.image_alpha = 0.5; |
48 |
_af.image_index = 3; |
49 |
_af.x = hatx; |
50 |
_af.y = haty; |
51 |
_af.image_angle = hatangle; |
52 |
} |