Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_shadow_mantle_bomb_spawn_Step_0

(view raw script w/o annotations or w/e)
1
var b = irandom(instance_number(obj_spawn_pos) - 1);
2
bullet = instance_create(x + 16, y + 16, obj_shadow_mantle_bomb);
3
bullet.depth = depth - 5;
4
bullet.targetx = pos[b].x + 4;
5
bullet.targety = pos[b].y + 16;
6
instance_destroy();
7
with (obj_spawn_pos)
8
    instance_destroy();