1 |
image_xscale = 2; |
2 |
image_yscale = 2; |
3 |
image_speed = 0.2; |
4 |
xoff = 35; |
5 |
yoff = 8; |
6 |
nxoff = 35; |
7 |
nyoff = 6; |
8 |
afactor = sin(siner / 24); |
9 |
siner++; |
10 |
if (afactor < -0.2 && siner >= 8) |
11 |
siner--; |
12 |
if (global.fighting == 0) |
13 |
instance_destroy(); |
14 |
if (!surface_exists(orbsurface)) |
15 |
orbsurface = surface_create(120, 136); |
16 |
surface_set_target(orbsurface); |
17 |
draw_clear(c_black); |
18 |
draw_sprite_ext(spr_noelleb_orb, 0, nxoff - xoff, nyoff - yoff, 2, 2, 0, c_white, 0.6 * afactor); |
19 |
snowangle = -20 + (siner / 2); |
20 |
snowoff = siner / 2; |
21 |
draw_sprite_ext(spr_noelleb_orb, 2, (nxoff - xoff) + snowoff, (nyoff - yoff) + (siner / 2), 2, 2, snowangle, c_white, 0.5 * afactor); |
22 |
draw_sprite_ext(spr_noelleb_orb, 2, nxoff - xoff - snowoff, nyoff - yoff - (siner / 2), 2, 2, -snowangle, c_white, 0.5 * afactor); |
23 |
draw_sprite_ext(sprite_index, image_index, nxoff, nyoff, image_xscale, image_yscale, image_angle, image_blend, image_alpha); |
24 |
draw_sprite_ext(spr_noelleb_orb, 1, nxoff - xoff, nyoff - yoff, 2, 2, 0, c_blue, 0.2 * afactor); |
25 |
draw_set_blend_mode(bm_add); |
26 |
draw_sprite_ext(spr_noelleb_orb, 1, nxoff - xoff, nyoff - yoff, 2, 2, 0, c_blue, 0.6 * afactor); |
27 |
draw_set_blend_mode(bm_normal); |
28 |
draw_set_blend_mode(bm_subtract); |
29 |
draw_sprite_ext(spr_noelleb_orb, 3, nxoff - xoff, nyoff - yoff, 2, 2, 0, c_white, 1); |
30 |
draw_set_blend_mode(bm_normal); |
31 |
surface_reset_target(); |
32 |
draw_surface(orbsurface, x - nxoff, y - nyoff); |