Deltarune (Chapter 2) script viewer

← back to main script listing

gml_Object_obj_sneo_mmx_spreadshot_Step_0

(view raw script w/o annotations or w/e)
1
if (x >= (room_width + 100) || x <= -100 || y >= (room_height + 100) || y <= -100)
2
    instance_destroy();
3
direction += angle_speed;
4
image_angle = direction;
5
if (alarm[0] == 8 || alarm[0] == 16)
gml_Object_obj_sneo_mmx_spreadshot_Alarm_0.gml

for (i = 0; i < 3; i++) { shot = instance_create(x, y, obj_regularbullet); if (i_ex(shot)) { shot.direction = 120 + (i * 60); shot.speed = 2; shot.friction = -0.6; shot.sprite_index = spr_sneo_soundbullet; shot.image_angle = shot.direction; shot.depth = obj_sneo_phonehand_master.depth - 1; shot.grazepoints = 7; shot.element = 6; } scr_bullet_inherit(shot); } instance_destroy();
6
    flashtimer = 5;