1 |
if (type == 0) |
2 |
{ |
3 |
siner++; |
4 |
x += (sin(siner / 8) / 2); |
5 |
y += (cos(siner / 8) / 2); |
6 |
zoomtimer += ((zoomtimer / 5) + 16); |
7 |
if (zoomtimer >= zoomtime) |
8 |
zoomtimer = zoomtime; |
9 |
lerpamount = zoomtimer / zoomtime; |
10 |
if (lerpamount >= 1) |
11 |
lerpamount = 1; |
12 |
radius = lerp(startradius, endradius, lerpamount); |
13 |
} |
14 |
if (type == 1) |
15 |
{ |
16 |
if (radius > endradius) |
17 |
radius -= 8; |
18 |
if (radius <= 0) |
19 |
radius = 0; |
20 |
} |
21 |
surface_set_target(surf); |
22 |
draw_clear(c_black); |
23 |
draw_set_blend_mode(bm_subtract); |
24 |
draw_set_color(c_white); |
25 |
draw_circle(x, y, radius, false); |
26 |
surface_reset_target(); |
27 |
draw_set_blend_mode(bm_normal); |
28 |
if (finish == 1) |
29 |
{ |
30 |
type = 1; |
31 |
endradius = 0; |
32 |
zoomtime += 100; |
33 |
} |