Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_battle_marker_Destroy_0

(view raw script w/o annotations or w/e)
1
if (!destroyoncomplete && endanimation)
2
{
3
    var newMarker = 
scr_battle_marker
scr_battle_marker

function
scr_battle_marker(arg0, arg1, arg2)
{ thismarker = instance_create(arg0, arg1, obj_battle_marker); with (thismarker) { sprite_index = arg2; image_speed = 1; image_xscale = 2; image_yscale = 2; } return thismarker; }
(x, y, endanimation);
4
    newMarker.destroyoncomplete = 1;
5
    newMarker.sourceobject = sourceobject;
6
    newMarker.depth = depth;
7
    newMarker.image_speed = 0.5;
8
}
9
else if (sourceobject)
10
{
11
    sourceobject.image_alpha = 1;
12
}