|
1
|
xx += xxspeed;
|
|
2
|
yy += yyspeed;
|
|
3
|
if (xx > (view_xview[0] + 200))
|
|
4
|
xx -= sprite_width;
|
|
5
|
if (xx < (view_xview[0] - 200))
|
|
6
|
xx += sprite_width;
|
|
7
|
if (yy > (view_yview[0] + 200))
|
|
8
|
yy -= sprite_height;
|
|
9
|
if (yy < (view_yview[0] - 200))
|
|
10
|
yy += sprite_height;
|
|
11
|
draw_sprite_ext(sprite_index, 0, xx, yy, 1, 1, 0, c_white, image_alpha);
|
|
12
|
draw_sprite_ext(sprite_index, 0, xx - sprite_width, yy - sprite_height, 1, 1, 0, c_white, image_alpha);
|
|
13
|
draw_sprite_ext(sprite_index, 0, xx + sprite_width, yy - sprite_height, 1, 1, 0, c_white, image_alpha);
|
|
14
|
draw_sprite_ext(sprite_index, 0, xx - sprite_width, yy + sprite_height, 1, 1, 0, c_white, image_alpha);
|
|
15
|
draw_sprite_ext(sprite_index, 0, xx + sprite_width, yy + sprite_height, 1, 1, 0, c_white, image_alpha);
|
|
16
|
draw_sprite_ext(sprite_index, 0, xx + sprite_width, yy, 1, 1, 0, c_white, image_alpha);
|
|
17
|
draw_sprite_ext(sprite_index, 0, xx - sprite_width, yy, 1, 1, 0, c_white, image_alpha);
|
|
18
|
draw_sprite_ext(sprite_index, 0, xx, yy + sprite_height, 1, 1, 0, c_white, image_alpha);
|
|
19
|
draw_sprite_ext(sprite_index, 0, xx, yy - sprite_height, 1, 1, 0, c_white, image_alpha);
|
|
20
|
if (image_alpha == 1)
|
|
21
|
{
|
|
22
|
if (instance_exists(obj_mainchara))
|
|
23
|
draw_sprite_ext(obj_mainchara.sprite_index, obj_mainchara.image_index, obj_mainchara.x, obj_mainchara.y, 1, 1, 0, c_black, 0.3);
|
|
24
|
}
|