for (var i = 0; i < count; i++) { with (leaves[i]) draw_sprite_ext(sprite_index, image_index + 1, x, y, image_xscale, image_yscale, image_angle, image_blend, image_alpha); }