Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions objects/obj_p_fleet/Draw_0.gml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@

if (!instance_exists(obj_star)) then exit;

if (instance_exists(orbiting)) and (obj_controller.is_test_map=true){
draw_set_color(c_red);
draw_line_width(x,y,orbiting.x,orbiting.y,1);
Expand All @@ -9,6 +11,7 @@ if (x<0) or (x>room_width) or (y<0) or (y>room_height) then exit;
if (image_alpha=0) then exit;

var coords = [0,0];

var near_star = instance_nearest(x,y, obj_star);
if (x==near_star.x && y==near_star.y){
var coords = [24,-24];
Expand Down