1 | if (HeroID == 0 && instance_exists(obj_herokris)) |
2 | { |
3 | depth = 80; |
4 | obj_herokris.depth = depth + 1; |
5 | } |
6 | if (HeroID == 1 && instance_exists(obj_herosusie)) |
7 | { |
8 | depth = 75; |
9 | obj_herosusie.depth = depth + 1; |
10 | } |
11 | if (HeroID == 2 && instance_exists(obj_heroralsei)) |
12 | { |
13 | depth = 70; |
14 | obj_heroralsei.depth = depth + 1; |
15 | } |
16 | back.x = x; |
17 | back.y = y + 8; |