Ludum Dare 27 - part 3

Got a little frustrated with GML earlier, but back on track now. Took me nearly an hour to figure out how to reference an (already created) object outside of that object. Turns out that every instance of an object has a number that is a bit overloaded in GML to identify it to GM. In code, the variable is "id".
For instance, you could combine that with the with() function to assign another object's target variable to yourself.
var temp_target = id;
with(obj_Dude){
target = temp_target;
state = "Moving";
}
Thank you for ignoring my formatting, code tag. I'll get to you later.