Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_ghosthouse_dot_Step_0

(view raw script w/o annotations or w/e)
1
if (
scr_debug
scr_debug

function
scr_debug()
{ if (global.debug == 1) return 1; }
() && keyboard_check_pressed(vk_tab))
2
    suck = true;
3
if (suck)
4
{
5
    suck *= (1.15 + (0.05 * (room == room_bullettest || (i_ex(obj_jackenstein_enemy) && obj_jackenstein_enemy.scaredycat))));
6
    x += lengthdir_x(sqrt(suck), 
scr_at_player
scr_at_player

function
scr_at_player(arg0 = x, arg1 = y)
{ return point_direction(arg0, arg1, obj_heart.x + (obj_heart.sprite_width / 2), obj_heart.y + (obj_heart.sprite_height / 2)); }
());
7
    y += lengthdir_y(sqrt(suck), 
scr_at_player
scr_at_player

function
scr_at_player(arg0 = x, arg1 = y)
{ return point_direction(arg0, arg1, obj_heart.x + (obj_heart.sprite_width / 2), obj_heart.y + (obj_heart.sprite_height / 2)); }
());
8
}