Deltarune (Chapter 2) script viewer

← back to main script listing

gml_Object_obj_sneo_wallbullet_old_Step_0

(view raw script w/o annotations or w/e)
1
if (x >= (room_width + 100) || x <= -100 || y >= (room_height + 100) || y <= -100)
2
    instance_destroy();
3
direction += angle_speed;
4
if (angleadjust == 1)
5
    image_angle = direction;
6
if (destroyable == 1)
7
{
8
    yellowsiner++;
9
    image_blend = merge_color(c_yellow, c_orange, 0.25 + (sin(yellowsiner / 3) * 0.25));
10
}
11
if (loop == 1)
12
{
13
    if (y < loopy1)
14
        y = loopy2 - (loopy1 - y);
15
    if (y > loopy2)
16
        y = loopy1 + (y - loopy2);
17
}
18
y += falsevspeed;
19
if (bighitbox == 1)
20
{
21
    hitshot = collision_rectangle(x, y, x + sprite_width, y + sprite_height, obj_yheart_shot, true, false);
22
    if (hitshot != -4)
23
        event_user(0);
24
}