Quote from: rocko775 on Thu 11/02/2010 21:16:38
...can you get him to do more spots than two, like a square...?
Anything is possible

function room_RepExec()
{
if(!cGuard.Moving)
{
if((cGuard.x == 100) && (cGuard.y == 100)) cGuard.Walk(100, 400);
if((cGuard.x == 100) && (cGuard.y == 400)) cGuard.Walk(400, 400);
if((cGuard.x == 400) && (cGuard.y == 400)) cGuard.Walk(400, 100);
if((cGuard.x == 400) && (cGuard.y == 100)) cGuard.Walk(100, 100);
}
}
a brief little code snippet on your guard walking in a counter-clockwise rotation in a square with 300-pixel sides