_parent = -4; _bullet_marker = -4; _bullet_active = false; _init_pos = -4; _target_pos = -4; _fade_out = false; create = function(arg0, arg1, arg2, arg3) { _parent = arg0; _init_pos = new Vector2(arg1.x, arg1.y); _target_pos = new Vector2(1634, 400); _bullet_active = false; _bullet_marker = scr_dark_marker(_init_pos.x, _init_pos.y, arg3); _bullet_marker.image_alpha = 0; _bullet_marker.image_angle = point_direction(_init_pos.x, _init_pos.y, _target_pos.x, _target_pos.y); _bullet_marker.depth = 96000; }; is_active = function() { return _bullet_active; }; start = function() { if (_bullet_marker == -4) exit; if (_bullet_active) exit; _bullet_marker.x = _init_pos.x; _bullet_marker.y = _init_pos.y; _bullet_marker.image_alpha = 0; _bullet_active = true; }; fade_out = function() { _fade_out = true; }; stop = function() { _bullet_active = false; with (_parent) trigger_event("bullet_finished"); }; clean_up = function() { with (_bullet_marker) instance_destroy(); instance_destroy(); };