|
1
|
animsiner++;
|
|
2
|
image_xscale = 2;
|
|
3
|
image_yscale = 2;
|
|
4
|
var bx = sin(animsiner / 6) * 5;
|
|
5
|
var by = -abs(cos(animsiner / 4)) * 5;
|
|
6
|
var armx = sin(animsiner / 6) * 9;
|
|
7
|
var army = cos(animsiner / 6) * 6;
|
|
8
|
var headx = sin(animsiner / 6) * 8;
|
|
9
|
var heady = (sin(animsiner / 6) * 6) + 4;
|
|
10
|
var legx = sin((animsiner + 4) / 6) * 5;
|
|
11
|
var legy = cos(animsiner / 6) * 2;
|
|
12
|
sprite_index = spr_tenna_battle_full;
|
|
13
|
animsinerb++;
|
|
14
|
var image = animsiner / 6;
|
|
15
|
var loopimage = 1.5 + (sin(image) * 1.5);
|
|
16
|
var loopimage1 = 1 + (sin(image) * 1);
|
|
17
|
var tailimage = image;
|
|
18
|
armshake *= -1;
|
|
19
|
armshakesiner++;
|
|
20
|
var chargingup = 1;
|
|
21
|
var armshakevalue = clamp((sin((armshakesiner / 18) - 1) * 1.5) - 1, 0, 4);
|
|
22
|
var armshakey = armshakevalue * armshake;
|
|
23
|
var headimage = 2;
|
|
24
|
if (chargingup == 0)
|
|
25
|
{
|
|
26
|
armshakey = 0;
|
|
27
|
armshakevalue = 0;
|
|
28
|
}
|
|
29
|
draw_monster_body_part_ext(spr_tenna_battle_leg_l, image, x - legx, y + legy, image_xscale, image_yscale, image_angle, image_blend, image_alpha);
|
|
30
|
draw_monster_body_part_ext(spr_tenna_battle_leg_r, image, x + legx, y - (legy / 4), image_xscale, image_yscale, image_angle, image_blend, image_alpha);
|
|
31
|
draw_monster_body_part_ext(spr_tenna_battle_tails, tailimage, (x + (bx / 2)) - 4, y + by, image_xscale, image_yscale, image_angle, image_blend, image_alpha);
|
|
32
|
draw_monster_body_part_ext(spr_tenna_battle_arm_back, 3 - loopimage, ((x + bx) - (armx * 1.5)) + 12, (y + by) - army, image_xscale, image_yscale, image_angle, image_blend, image_alpha);
|
|
33
|
draw_monster_body_part_ext(spr_tenna_battle_torso, 0, x + bx, y + by, image_xscale, image_yscale, image_angle, image_blend, image_alpha);
|
|
34
|
draw_monster_body_part_ext(spr_tenna_battle_tie, 0, x + bx, y + by, image_xscale, image_yscale, image_angle, image_blend, image_alpha);
|
|
35
|
draw_monster_body_part_ext(spr_tenna_battle_face, headimage - (armshakevalue * 5), ((x + bx) - headx) + 2 + (armshakey / 2), (y + by + heady) - 2 - (armshakey / 2), image_xscale, image_yscale, image_angle, image_blend, image_alpha);
|
|
36
|
draw_monster_body_part_ext(spr_tenna_battle_arm_front, loopimage, ((x + bx) - armx) + armshakey, y + by + army + armshakey, image_xscale, image_yscale, image_angle, image_blend, image_alpha);
|