Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_car_breakable_Collision_obj_susiezilla_player_hitbox

(view raw script w/o annotations or w/e)
1
if (hitted == 0)
2
{
3
    event_user(0);
4
    
scr_shakeobj
scr_shakeobj

function
scr_shakeobj()
{ var _shakeobj = instance_create(x, y, obj_shakeobj); _shakeobj.target = id; if (argument_count >= 1) { if (i_ex(argument0)) _shakeobj.target = argument0; } if (argument_count >= 2) { if (argument1 != -1) _shakeobj.shakeamt = argument1; } if (argument_count >= 3) { if (argument2 != -1) _shakeobj.shakereduct = argument2; } with (_shakeobj) event_user(0); }
();
5
    hittype = 1;
6
    hitcon = 1;
7
    hspeed = 0;
8
    vspeed = 0;
9
    snd_play(snd_ultraswing);
10
    snd_stop(snd_smallcar_yelp);
11
    snd_stop(snd_hitcar_little);
12
    if (obj_susiezilla.image_xscale > 0)
13
        dirsave = 45;
14
    else
15
        dirsave = 135;
16
    flashtimer = 5;
17
}