1 |
if instance_exists(obj_martlet_follower) |
2 |
{ |
3 |
var martlet_sprite = spr_collisionbox |
4 |
switch obj_martlet_follower.sprite_index |
5 |
{ |
6 |
case spr_martlet_up: |
7 |
martlet_sprite = spr_martlet_up_roof |
8 |
break |
9 |
case 262: |
10 |
martlet_sprite = spr_martlet_up_talk_roof |
11 |
break |
12 |
case 274: |
13 |
martlet_sprite = spr_martlet_down_roof |
14 |
break |
15 |
case 265: |
16 |
martlet_sprite = spr_martlet_down_talk_roof |
17 |
break |
18 |
case 272: |
19 |
martlet_sprite = spr_martlet_left_roof |
20 |
break |
21 |
case 268: |
22 |
martlet_sprite = spr_martlet_left_talk_roof |
23 |
break |
24 |
case 270: |
25 |
martlet_sprite = spr_martlet_right_roof |
26 |
break |
27 |
case 263: |
28 |
martlet_sprite = spr_martlet_right_talk_roof |
29 |
break |
30 |
} |
31 |
|
32 |
draw_set_alpha(overlay_draw_alpha_follower) |
33 |
draw_sprite(martlet_sprite, obj_martlet_follower.image_index, obj_martlet_follower.x, obj_martlet_follower.y) |
34 |
draw_set_alpha(1) |
35 |
} |