Deltarune (Chapter 5) script viewer

← back to main script listing

gml_Object_obj_plat_enm_yellow_miniboss_Collision_obj_plat_player

related scripts: Collision_obj_plat_enm_smallgloveCollision_obj_plat_player Collision_obj_plat_susieaxe_hbxCreate_0Destroy_0Draw_0Draw_72Other_19Other_4PreCreate_0Step_0Step_2

(view raw script w/o annotations or w/e)
1
if (hit <= 0 && hp > 0 && contact_damage > 0 && !other.hurt && !other.invincible)
2
{
3
    snd_play(snd_punchmed);
4
    with (other)
5
    {
6
        do_kb = true;
7
        hurt_type = 1;
8
        get_hurt(15, -8 * sign(other.x - x), -8, other.contact_damage);
9
        do_hitstop(4);
10
        with (
scr_plat_vfx
scr_plat_vfx

function
scr_plat_vfx(arg0)
{ var _vfx = instance_create_depth(x, y, depth, obj_plat_vfx); _vfx.sprite_index = arg0; return _vfx; } function scr_vfx_above(arg0) { var _vfx = instance_create_depth(x, y, depth - 1, obj_plat_vfx); _vfx.sprite_index = arg0; return _vfx; } function scr_plat_vfx_ringhit(arg0, arg1, arg2, arg3) {
scr_make_ripple(arg0, arg1, 80, arg3, 280, 2, 20, depth, 0, 0, 0, 1, 0.8);
scr_make_ripple(arg0, arg1, 120, arg3, 480, 2, 15, depth, 0, 0, 0, 1, 0.8);
scr_make_ripple(arg0, arg1, 160, arg3, 680, 2, 10, depth, 0, 0, 0, 1, 0.8);
repeat (7) { with (instance_create(arg0, arg1, obj_animation)) { sprite_index = spr_plat_impact_splash; direction = random_range(0, 360); speed = random_range(3, 12); friction = 0.8; image_speed = 0.3; image_angle = direction;
scr_darksize();
image_blend = arg3; } } }
(7342))
11
        {
12
            image_xscale = choose(1, -1);
13
            image_yscale = choose(1, -1);
14
            image_angle = choose(0, 90, 180, 270);
15
        }
16
    }
17
}