Mmm, after some fiddling with this code, and changing it for my needs, there's something strange happening. At the edges of my radar, when the enemies are just getting in range (or just out of range) the dots get like twice the size, instead of being really small, or invisible. Anyone have an idea why this happens? Like I said in one of my previous posts, only things I've changed is camera.x into player.x, wherever the camera was involved. It must be the math when certain values get past some range, it's kinda confusing, because it's working fine, except this size blow-up when they are at the range area of the radar...
Code:
_____________
|O . . |
| * |
| * * * |
| . . |
|O_____O_____|
The zeros are my 'problem' , I want them either invisible, or super small sized, not twice the normal size

...
EDIT: Nevermind, I've got it solved ... I've just added ;
Code:
if(pan_temp.pos_x - rader.pos_x < 25){break;}
if(pan_temp.pos_y - rader.pos_y < 25){break;}
if(pan_temp.pos_x - rader.pos_x > 100){break;}
if(pan_temp.pos_y - rader.pos_y > 100){break;}
Cheers