|
1
|
animindex += animspeed;
|
|
2
|
if (drawaura)
|
|
3
|
{
|
|
4
|
specialspritecase = 0;
|
|
5
|
drawx = 0;
|
|
6
|
fakescale = 2;
|
|
7
|
if (facing == 1)
|
|
8
|
{
|
|
9
|
fakescale = -2;
|
|
10
|
drawx = 76;
|
|
11
|
}
|
|
12
|
drawscale = 1;
|
|
13
|
drawsiner += 0.25;
|
|
14
|
var remx = x;
|
|
15
|
x += drawx;
|
|
16
|
superscalexb = 1;
|
|
17
|
drawx = 0;
|
|
18
|
drawscale = 1;
|
|
19
|
xoff = 0;
|
|
20
|
if (facing == 1 && specialspritecase == 0)
|
|
21
|
{
|
|
22
|
drawscale = -1;
|
|
23
|
drawx = sprite_width;
|
|
24
|
}
|
|
25
|
drawsiner += 0.25;
|
|
26
|
tempx = x;
|
|
27
|
x += drawx;
|
|
28
|
superscalex = 0;
|
|
29
|
superdrawx = 0;
|
|
30
|
superscalexb = 1;
|
|
31
|
if (specialspritecase == 0)
|
|
32
|
{
|
|
33
|
if (facing == 0)
|
|
34
|
{
|
|
35
|
superscalex = 0;
|
|
36
|
}
|
|
37
|
else
|
|
38
|
{
|
|
39
|
superscalex = -4;
|
|
40
|
superscalexb = -1;
|
|
41
|
superdrawx = -sprite_width * 2;
|
|
42
|
xoff = 76;
|
|
43
|
}
|
|
44
|
}
|
|
45
|
gpu_set_blendmode(bm_add);
|
|
46
|
for (i = 0; i < 5; i++)
|
|
47
|
{
|
|
48
|
var aura = (i * 9) + ((drawsiner * 3) % 9);
|
|
49
|
var aurax = (aura * 0.75) + (sin(aura / 4) * 4);
|
|
50
|
var auray = 45 * scr_ease_inscr_ease_in
function scr_ease_in(arg0, arg1)
{
if (arg1 < -3 || arg1 > 7)
return arg0;
switch (arg1)
{
case -3:
return ease_in_bounce(arg0, 0, 1, 1);
case -2:
return ease_in_elastic(arg0, 0, 1, 1);
case -1:
var _s = 1.70158;
return arg0 * arg0 * (((_s + 1) * arg0) - _s);
case 0:
return arg0;
case 1:
return -cos(arg0 * 1.5707963267948966) + 1;
case 6:
return power(2, 10 * (arg0 - 1));
case 7:
return -(sqrt(1 - sqr(arg0)) - 1);
default:
return power(arg0, arg1);
}
} (aura / 45, 1);
|
|
51
|
var aurayscale = min(80 / sprite_height, 1);
|
|
52
|
draw_sprite_ext(sprite_index, animindex, x - xoff - ((aurax / 180) * drawscale * sprite_width), y - ((auray / 82) * sprite_height * aurayscale), (image_xscale + (aurax / 36)) * drawscale, image_yscale + ((auray / 36) * aurayscale), image_angle, c_red, image_alpha * (1 - (auray / 45)) * 0.5 * auraalph);
|
|
53
|
}
|
|
54
|
gpu_set_blendmode(bm_normal);
|
|
55
|
var xmult = min((70 / sprite_width) * 4, 4);
|
|
56
|
var ymult = min((80 / sprite_height) * 5, 5);
|
|
57
|
var ysmult = min((80 / sprite_height) * 0.2, 0.2);
|
|
58
|
draw_sprite_ext_centerscale(sprite_index, animindex, (x - xoff) + superdrawx + (sin(drawsiner / 5) * xmult), y + (cos(drawsiner / 5) * ymult), image_xscale + superscalex, image_yscale + (sin(drawsiner / 5) * ysmult), image_angle, 255, image_alpha * 0.2 * auraalph);
|
|
59
|
draw_sprite_ext_centerscale(sprite_index, animindex, ((x - xoff) + superdrawx) - (sin(drawsiner / 5) * xmult), y - (cos(drawsiner / 5) * ymult), image_xscale + superscalex, image_yscale - (sin(drawsiner / 5) * ysmult), image_angle, 255, image_alpha * 0.2 * auraalph);
|
|
60
|
scr_draw_outline_extscr_draw_outline_ext
function scr_draw_outline_ext(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9)
{
gpu_set_fog(true, arg7, 0, 0);
var __xdirA = arg9;
var __xdirB = 0;
var __ydirA = 0;
var __ydirB = arg9;
if ((arg6 % 90) != 0)
{
__xdirA = lengthdir_x(arg9, arg6);
__xdirB = lengthdir_x(arg9, arg6 + 90);
__ydirA = lengthdir_y(arg9, arg6 + 90);
__ydirB = lengthdir_y(arg9, arg6);
}
draw_sprite_ext(arg0, arg1, arg2 + __xdirA, arg3 + __ydirA, arg4, arg5, arg6, c_white, arg8);
draw_sprite_ext(arg0, arg1, arg2 - __xdirA, arg3 - __ydirA, arg4, arg5, arg6, c_white, arg8);
draw_sprite_ext(arg0, arg1, arg2 + __xdirB, arg3 + __ydirB, arg4, arg5, arg6, c_white, arg8);
draw_sprite_ext(arg0, arg1, arg2 - __xdirB, arg3 - __ydirB, arg4, arg5, arg6, c_white, arg8);
gpu_set_fog(false, c_white, 0, 0);
} (sprite_index, animindex, x - xoff, y, image_xscale * drawscale, image_yscale, image_angle, c_red, image_alpha * 0.3, 2 * auraalph);
|
|
61
|
x = tempx;
|
|
62
|
mymidx = x + (sprite_width / 2);
|
|
63
|
mymidy = y + ((bbox_bottom - y) / 2);
|
|
64
|
x = remx;
|
|
65
|
}
|
|
66
|
if (con < 2)
|
|
67
|
{
|
|
68
|
if (facing == 0)
|
|
69
|
{
|
|
70
|
draw_sprite_ext(spr_organik_body, 0, x - 18, y - 14, 2, 2, 0, image_blend, 1);
|
|
71
|
draw_sprite_ext(spr_organik_head, animindex, x - 18, y - 14, 2, 2, 0, image_blend, 1);
|
|
72
|
}
|
|
73
|
else
|
|
74
|
{
|
|
75
|
draw_sprite_ext(spr_organik_body, 0, x + 94, y - 14, -2, 2, 0, image_blend, 1);
|
|
76
|
draw_sprite_ext(spr_organik_head, animindex, x + 94, y - 14, -2, 2, 0, image_blend, 1);
|
|
77
|
}
|
|
78
|
}
|
|
79
|
if (con == 2)
|
|
80
|
{
|
|
81
|
}
|
|
82
|
if (scr_debugscr_debug
function scr_debug()
{
if (global.debug == 1)
return 1;
} ())
|
|
83
|
{
|
|
84
|
var count = 0;
|
|
85
|
var space = 10;
|
|
86
|
var border = 8;
|
|
87
|
var _cx = camerax();
|
|
88
|
var _cy = cameray();
|
|
89
|
var drawcol = false;
|
|
90
|
if (drawcol)
|
|
91
|
{
|
|
92
|
draw_set_color(c_red);
|
|
93
|
ossafe_fill_rectangle(bbox_left, bbox_top, bbox_right, bbox_bottom, 1);
|
|
94
|
draw_set_color(-1);
|
|
95
|
draw_set_color(-255);
|
|
96
|
d_circle(x + 40, y + 70 + 20, touchsize, true);
|
|
97
|
draw_set_color(-1);
|
|
98
|
}
|
|
99
|
}
|