First of all, thank you very much for the speedy, helpful reply. Here is the entire block of code, the //'s being comments. This is just the code for the dot on the radar, executed each step of the game (that is, every frame, at 30 frames per second).
if (x > 825)
{
x = obj_Radar.x +...