if (green == 1) { sprite_index = spr_carrotbullet_gr; if (instance_exists(obj_parsnik)) sprite_index = spr_carrotbullet_snake_gr; } draw_self_border();