Deltarune (Chapter 5) script viewer

← back to main script listing

gml_GlobalScript_scr_messagebubble

(view raw script w/o annotations or w/e)
1
function 
scr_messagebubble
scr_messagebubble

function
scr_messagebubble(arg0, arg1, arg2, arg3, arg4 = -1, arg5 = false)
{ var me = id; var talklength = 40; var _tail_x = arg3.x + 56; var _tail_y = arg3.y + 56; var tail_direction = 180 + point_direction(_tail_x, _tail_y, arg1, arg2); var txloc = _tail_x + lengthdir_x(-talklength, tail_direction); var tyloc = _tail_y + lengthdir_y(-talklength, tail_direction); var bubble = instance_create(arg1, arg2, obj_talkbubble); with (bubble) { tail_target = arg3; bubbletype = 0; tx = txloc; ty = tyloc; text = arg0; lifetime = arg4; dropColor = 2181609; follow = true; taillength = 60; clear = arg5; } return bubble; }
(arg0, arg1, arg2, arg3, arg4 = -1, arg5 = false)
2
{
3
    var me = id;
4
    var talklength = 40;
5
    var _tail_x = arg3.x + 56;
6
    var _tail_y = arg3.y + 56;
7
    var tail_direction = 180 + point_direction(_tail_x, _tail_y, arg1, arg2);
8
    var txloc = _tail_x + lengthdir_x(-talklength, tail_direction);
9
    var tyloc = _tail_y + lengthdir_y(-talklength, tail_direction);
10
    var bubble = instance_create(arg1, arg2, obj_talkbubble);
11
    with (bubble)
12
    {
13
        tail_target = arg3;
14
        bubbletype = 0;
15
        tx = txloc;
16
        ty = tyloc;
17
        text = arg0;
18
        lifetime = arg4;
19
        dropColor = 2181609;
20
        follow = true;
21
        taillength = 60;
22
        clear = arg5;
23
    }
24
    return bubble;
25
}