Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_mike_ball_Collision_obj_juggle_collision

(view raw script w/o annotations or w/e)
1
if (act == 0)
2
{
3
    var _width = 32 + (obj_mike_controller.line_width / 2);
4
    var _targetx = (x < (room_width / 2)) ? ((room_width / 2) + _width) : ((room_width / 2) - _width);
5
    var _direction = point_direction(x, obj_mike_controller.y, _targetx, y - 400);
6
    var _vs = 7;
7
    motion_set(_direction, _vs);
8
    gravity = 0;
9
alarm[0]
10
    act = 1;
11
    wobble = 15;
12
    var _a = snd_play(snd_wobble);
13
    snd_pitch(_a, 1.5);
14
    hue = irandom(255);
15
    while (abs(last_hue - hue) < 40)
16
        hue = irandom(255);
17
    last_hue = hue;
18
    image_angle = random(360);
19
    image_blend = make_colour_hsv(hue, 255, 255);
20
    _a = instance_create(x, y, obj_healanim);
21
    _a.target = id;
22
    _a.particlecolor = image_blend;
23
    with (_a)
24
    {
25
        t = 1;
26
        sw = sprite_width;
27
        sh = sprite_height;
28
    }
29
    with (obj_mike_minigame_controller)
30
        myscore += 100;
31
}