NO, i need it to be CONFINED! i am using point_direction, what i'm asking is how do i keep it from being able to be dragged all over the screen: what im saying is not how do i retrieve the var, but how do i keep the 'knob thing' in a fixed ring, so you can drag it in a fixed circle, so it is always the same distance from the center, that way you can't drag it all over the screen!
this is a very simple trick. assuming you want it from anywhere on all sides in top-down, then here is the code:
//in the step event of your 'control' object
if yr=0 or yr=room_height
if xr=0 or xr=room_width
basically it makes it generate an xy randomly in the room. then it checks to see if it is at the edges. if it is, then it creates 'obj_zombie' there. if not, then it repeats the process until it finds one. this is a basic code, but with dome advanced tweaking it could run much faster.