1 |
if (stage == 0) |
2 |
draw_sprite(sprite_index, image_index, x, y); |
3 |
if (stage == 1) |
4 |
{ |
5 |
xsin2 = cos(xsin / 10) * 4; |
6 |
sprite_index = spr_moldsmalx_up; |
7 |
g = instance_create(x, y + 170, obj_moldsmalx_part); |
8 |
g.c = 1; |
9 |
g = instance_create(x, y + 140, obj_moldsmalx_part); |
10 |
g = instance_create(x, y + 110, obj_moldsmalx_part); |
11 |
g.c = 1; |
12 |
instance_create(x, y + 80, obj_moldsmalx_part); |
13 |
if (room == room_end_castroll || room == room_monsteralign_test) |
14 |
obj_moldsmalx_part.bborder = ystart + 100; |
15 |
stage = 2; |
16 |
} |
17 |
if (stage == 2) |
18 |
{ |
19 |
height += 2; |
20 |
y -= 4; |
21 |
draw_sprite_part_ext(sprite_index, image_index, 0, 0, 50, height, x + xsin2, y, 2, 2, c_white, 1); |
22 |
if (height > 104) |
23 |
stage = 3; |
24 |
} |
25 |
if (stage == 3) |
26 |
{ |
27 |
obj_moldsmalx_part.f = 2; |
28 |
xsin2 = cos(xsin / 10) * 4; |
29 |
draw_sprite_part_ext(sprite_index, image_index, 0, 0, 50, height, x + xsin2, y, 2, 2, c_white, 1); |
30 |
xsin += 1; |
31 |
} |