1 |
draw_sprite(sprite_index, image_index, x, y); |
2 |
anim += 1; |
3 |
if (type == 0) |
4 |
{ |
5 |
if (red == 0) |
6 |
draw_sprite(spr_levereye_red, 0, x + 6, y + 16); |
7 |
if (red == 1) |
8 |
draw_sprite(spr_levereye_red_bright, floor(anim / 4), x + 6, y + 16); |
9 |
} |
10 |
if (type == 1) |
11 |
{ |
12 |
if (blu == 0) |
13 |
draw_sprite(spr_levereye_blue, 0, x + 6, y + 16); |
14 |
if (blu == 1) |
15 |
draw_sprite(spr_levereye_blue_bright, floor(anim / 4), x + 6, y + 16); |
16 |
} |
17 |
if (type == 2) |
18 |
{ |
19 |
if (gre == 0) |
20 |
draw_sprite(spr_levereye_green, 0, x + 6, y + 16); |
21 |
if (gre == 1) |
22 |
draw_sprite(spr_levereye_green_bright, floor(anim / 4), x + 6, y + 16); |
23 |
} |
24 |
if (type == 3) |
25 |
{ |
26 |
if (yel == 0) |
27 |
draw_sprite(spr_levereye_yellow, 0, x + 6, y + 16); |
28 |
if (yel == 1) |
29 |
draw_sprite(spr_levereye_yellow_bright, floor(anim / 4), x + 6, y + 16); |
30 |
} |