1 |
var pl_sprite = spr_collisionbox |
2 |
depth = active_object.depth - 1 |
3 |
if (global.route == 3) |
4 |
{ |
5 |
switch active_object.sprite_index |
6 |
{ |
7 |
case spr_pl_up: |
8 |
pl_sprite = spr_pl_up_roof |
9 |
break |
10 |
case 2226: |
11 |
pl_sprite = spr_pl_down_roof_geno |
12 |
break |
13 |
case 3704: |
14 |
pl_sprite = spr_pl_left_roof_geno |
15 |
break |
16 |
case 2918: |
17 |
pl_sprite = spr_pl_right_roof_geno |
18 |
break |
19 |
case 3380: |
20 |
pl_sprite = spr_pl_up_geno_shoot_roof |
21 |
break |
22 |
default: |
23 |
pl_sprite = -4 |
24 |
return; |
25 |
} |
26 |
|
27 |
} |
28 |
else |
29 |
{ |
30 |
switch active_object.sprite_index |
31 |
{ |
32 |
case spr_pl_up: |
33 |
pl_sprite = 3466 |
34 |
break |
35 |
case 23: |
36 |
pl_sprite = 732 |
37 |
break |
38 |
case 22: |
39 |
pl_sprite = 620 |
40 |
break |
41 |
case 21: |
42 |
pl_sprite = 2617 |
43 |
break |
44 |
default: |
45 |
pl_sprite = -4 |
46 |
return; |
47 |
} |
48 |
|
49 |
} |
50 |
draw_set_alpha(overlay_draw_alpha) |
51 |
draw_sprite(pl_sprite, active_object.image_index, active_object.x, active_object.y) |
52 |
draw_set_alpha(1) |