1 |
if (image_alpha < 1) |
2 |
image_alpha += 0.04; |
3 |
if (init == 0) |
4 |
{ |
5 |
startdepth = obj_growtangle.depth + depth; |
6 |
init = 1; |
7 |
} |
8 |
if (x >= (room_width + 100) || x <= -100 || y >= (room_height + 100) || y <= -100) |
9 |
instance_destroy(); |
10 |
direction += angle_speed; |
11 |
if (angleadjust == 1) |
12 |
image_angle = direction; |
13 |
if (destroyable == 1) |
14 |
{ |
15 |
yellowsiner++; |
16 |
image_blend = merge_color(c_yellow, c_orange, 0.25 + (sin(yellowsiner / 3) * 0.25)); |
17 |
} |
18 |
sinespeed = obj_sneo_wall_controller.sinespeed; |
19 |
siner += sinespeed; |
20 |
x = xx + (cos(-siner / 20) * xdist); |
21 |
var _falsedepth = sin(siner / 20); |
22 |
active = _falsedepth >= 0; |
23 |
var _depthblend = clamp(_falsedepth + 0.5, 0, 1); |
24 |
image_blend = merge_color(c_gray, c_white, _depthblend); |
25 |
depth = obj_growtangle.depth - (_falsedepth * startdepth) - 3; |
26 |
if (bighitbox == 1) |
27 |
{ |
28 |
hitshot = collision_rectangle(x, y, x + sprite_width, y + sprite_height, obj_yheart_shot, true, false); |
29 |
if (hitshot != -4) |
30 |
event_user(0); |
31 |
} |