1 |
x = o_boxingcontroller.x + 38; |
2 |
y = o_boxingcontroller.y - 96; |
3 |
f = 2; |
4 |
timer = 0; |
5 |
state = 0; |
6 |
rotating_sprite_piece1 = instance_create(x, y, obj_rotating_sprite); |
7 |
rotating_sprite_piece2 = instance_create(x, y, obj_rotating_sprite); |
8 |
rotating_sprite_piece3 = instance_create(x, y, obj_rotating_sprite); |
9 |
rotating_sprite_piece4 = instance_create(x, y, obj_rotating_sprite); |
10 |
rotating_sprite_piece5 = instance_create(x, y, obj_rotating_sprite); |
11 |
rotating_sprite_piece6 = instance_create(x, y, obj_rotating_sprite); |
12 |
with (rotating_sprite_piece1) |
13 |
{ |
14 |
path = path_add(); |
15 |
path_set_kind(path, 1); |
16 |
path_set_closed(path, true); |
17 |
path_add_point(path, 368, 160, 100); |
18 |
path_add_point(path, 304, 184, 100); |
19 |
path_add_point(path, 272, 184, 100); |
20 |
path_add_point(path, 208, 160, 100); |
21 |
path_add_point(path, 272, 136, 100); |
22 |
path_add_point(path, 304, 136, 100); |
23 |
path_start(path, 4, path_action_continue, false); |
24 |
path_position = 0; |
25 |
} |
26 |
with (rotating_sprite_piece2) |
27 |
{ |
28 |
path = path_add(); |
29 |
path_set_kind(path, 1); |
30 |
path_set_closed(path, true); |
31 |
path_add_point(path, 368, 160, 100); |
32 |
path_add_point(path, 304, 184, 100); |
33 |
path_add_point(path, 272, 184, 100); |
34 |
path_add_point(path, 208, 160, 100); |
35 |
path_add_point(path, 272, 136, 100); |
36 |
path_add_point(path, 304, 136, 100); |
37 |
path_start(path, 4, path_action_continue, false); |
38 |
path_position = 0.1666; |
39 |
} |
40 |
with (rotating_sprite_piece3) |
41 |
{ |
42 |
path = path_add(); |
43 |
path_set_kind(path, 1); |
44 |
path_set_closed(path, true); |
45 |
path_add_point(path, 368, 160, 100); |
46 |
path_add_point(path, 304, 184, 100); |
47 |
path_add_point(path, 272, 184, 100); |
48 |
path_add_point(path, 208, 160, 100); |
49 |
path_add_point(path, 272, 136, 100); |
50 |
path_add_point(path, 304, 136, 100); |
51 |
path_start(path, 4, path_action_continue, false); |
52 |
path_position = 0.3333; |
53 |
} |
54 |
with (rotating_sprite_piece4) |
55 |
{ |
56 |
path = path_add(); |
57 |
path_set_kind(path, 1); |
58 |
path_set_closed(path, true); |
59 |
path_add_point(path, 368, 160, 100); |
60 |
path_add_point(path, 304, 184, 100); |
61 |
path_add_point(path, 272, 184, 100); |
62 |
path_add_point(path, 208, 160, 100); |
63 |
path_add_point(path, 272, 136, 100); |
64 |
path_add_point(path, 304, 136, 100); |
65 |
path_start(path, 4, path_action_continue, false); |
66 |
path_position = 0.5; |
67 |
} |
68 |
with (rotating_sprite_piece5) |
69 |
{ |
70 |
path = path_add(); |
71 |
path_set_kind(path, 1); |
72 |
path_set_closed(path, true); |
73 |
path_add_point(path, 368, 160, 100); |
74 |
path_add_point(path, 304, 184, 100); |
75 |
path_add_point(path, 272, 184, 100); |
76 |
path_add_point(path, 208, 160, 100); |
77 |
path_add_point(path, 272, 136, 100); |
78 |
path_add_point(path, 304, 136, 100); |
79 |
path_start(path, 4, path_action_continue, false); |
80 |
path_position = 0.66666; |
81 |
} |
82 |
with (rotating_sprite_piece6) |
83 |
{ |
84 |
path = path_add(); |
85 |
path_set_kind(path, 1); |
86 |
path_set_closed(path, true); |
87 |
path_add_point(path, 368, 160, 100); |
88 |
path_add_point(path, 304, 184, 100); |
89 |
path_add_point(path, 272, 184, 100); |
90 |
path_add_point(path, 208, 160, 100); |
91 |
path_add_point(path, 272, 136, 100); |
92 |
path_add_point(path, 304, 136, 100); |
93 |
path_start(path, 4, path_action_continue, false); |
94 |
path_position = 0.8333; |
95 |
} |