1 | if (con == 0) |
2 | { |
3 | siner += 1; |
4 | y += (sin(siner / ss) / 3); |
5 | image_angle += aa; |
6 | } |
7 | if (con == 1) |
8 | { |
9 | xx = x; |
10 | yy = y; |
11 | newx = obj_amalgam_dogevent.dx; |
12 | newy = obj_amalgam_dogevent.dy; |
13 | tox = (newx - x) / 10; |
14 | toy = (newy - y) / 10; |
15 | con = 2; |
16 | alarm[4] = 10; |
17 | } |
18 | if (con == 2) |
19 | { |
20 | x += tox; |
21 | y += toy; |
22 | } |
23 | if (con == 3) |
24 | instance_destroy(); |