|
1
|
rotationsiner += 0.1;
|
|
2
|
if (rotationsiner > 6.4)
|
|
3
|
rotationsiner -= 6.4;
|
|
4
|
if (rotationsiner >= 0.53 && rotationsiner < 2.6)
|
|
5
|
depth = obj_rotating_tower_controller.depth + 50;
|
|
6
|
else
|
|
7
|
depth = obj_mainchara.depth - 10;
|
|
8
|
draw_sprite_ext(sprite_index, image_index, x, y, sin(rotationsiner + 1.57), image_yscale, image_angle, image_blend, image_alpha);
|
|
9
|
if (rotationsiner >= 0.53 && rotationsiner < 2.6)
|
|
10
|
darken_alpha = 1;
|
|
11
|
if (rotationsiner >= 3.2 && rotationsiner < 6.4)
|
|
12
|
darken_alpha = 0;
|
|
13
|
if (rotationsiner >= 0 && rotationsiner < 0.53)
|
|
14
|
darken_alpha = lerp(0, 1, rotationsiner / 0.53);
|
|
15
|
if (rotationsiner >= 2.6 && rotationsiner < 3.2)
|
|
16
|
darken_alpha = lerp(1, 0, (rotationsiner - 2.6) / 0.53);
|
|
17
|
d3d_set_fog(true, c_black, 0, 1);
|
|
18
|
draw_sprite_ext(sprite_index, image_index, x, y, sin(rotationsiner + 1.57), image_yscale, image_angle, image_blend, darken_alpha);
|
|
19
|
d3d_set_fog(false, c_black, 0, 0);
|