1 |
if (con == 0 && y >= view_yview[0]) |
2 |
{ |
3 |
y = view_yview[0]; |
4 |
vspeed = 0; |
5 |
friction = 0; |
6 |
con = 1; |
7 |
} |
8 |
if (instance_exists(obj_multitileevent)) |
9 |
time = obj_multitileevent.cooltimer; |
10 |
else |
11 |
time -= 1; |
12 |
draw_sprite(spr_timehud_vert, 0, x, y + 20); |
13 |
if (instance_exists(obj_tileguy)) |
14 |
orange = obj_tileguy.orange; |
15 |
draw_sprite(spr_orangeindicator, orange + 1, x + 28, y + 24); |
16 |
thisnum = ceil(time / 30); |
17 |
if (thisnum >= 0) |
18 |
{ |
19 |
place = 0; |
20 |
numadd = 10; |
21 |
if (thisnum >= numadd) |
22 |
{ |
23 |
while (thisnum >= numadd) |
24 |
{ |
25 |
place += 1; |
26 |
numadd *= 10; |
27 |
} |
28 |
} |
29 |
} |
30 |
else |
31 |
{ |
32 |
thisnum = 0; |
33 |
place = 0; |
34 |
} |
35 |
thisnum2 = thisnum; |
36 |
for (i = place; i >= 0; i -= 1) |
37 |
{ |
38 |
numnum[i] = floor(thisnum2 / power(10, i)); |
39 |
thisnum2 -= (numnum[i] * power(10, i)); |
40 |
} |
41 |
for (i = place; i >= 0; i -= 1) |
42 |
{ |
43 |
draw_set_color(c_red); |
44 |
draw_sprite(spr_digitalnumber, numnum[i], (x + 92) - (i * 9), y + 25); |
45 |
} |
46 |
if (finished == 1) |
47 |
{ |
48 |
vspeed -= 0.5; |
49 |
if (y < -50) |
50 |
instance_destroy(); |
51 |
} |