1 | thensc = 0; |
2 | sc = abs(floor(check.x / check.hspeed) - floor(fatalx / check.hspeed)); |
3 | if (sc < 28) |
4 | thensc = 10; |
5 | if (sc < 22) |
6 | thensc = 15; |
7 | if (sc < 16) |
8 | thensc = 20; |
9 | if (sc < 10) |
10 | thensc = 40; |
11 | if (sc < 5) |
12 | thensc = 50; |
13 | if (sc < 4) |
14 | thensc = 70; |
15 | if (sc < 3) |
16 | thensc = 80; |
17 | if (sc < 2) |
18 | thensc = 90; |
19 | if (sc < 1) |
20 | { |
21 | thensc = 110; |
22 | check.x = fatalx; |
23 | } |
24 | myscore += thensc; |
25 | fadebar = instance_create(check.x, check.y, obj_fadebar); |
26 | if (sc < 1) |
27 | { |
28 | fadebar.image_index = 2; |
29 | fadebar.image_speed = 1; |
30 | snd_play(snd_victor); |
31 | } |
32 | else if (sc < 5) |
33 | { |
34 | fadebar.image_index = 1; |
35 | snd_play(snd_hit); |
36 | } |
37 | with (check) |
38 | instance_destroy(); |
39 | if (myscore > 430) |
40 | myscore *= 1.8; |
41 | if (myscore >= 400) |
42 | myscore *= 1.25; |