Y
Yvalson
Guest
Code:
if(point_in_rectangle(device_mouse_x(0),device_mouse_y(0),view_xview+view_wview/2, view_hview, view_xview+view_wview, view_yview) or point_in_rectangle(device_mouse_x(1),device_mouse_y(1),view_xview+view_wview/2, view_hview, view_xview+view_wview, view_yview)){
if(device_mouse_check_button(0, mb_left)){
self.x = mouse_x
self.y = mouse_y
}
if(device_mouse_check_button(1, mb_left)){
self.x = mouse_x
self.y = mouse_y
}
}
x = clamp(x, Obj_OuterRing_Aim.x - 96, Obj_OuterRing_Aim.x + 96);
y = clamp(y, Obj_OuterRing_Aim.y - 96, Obj_OuterRing_Aim.y + 96);
Code:
if(point_in_rectangle(device_mouse_x(0),device_mouse_y(0), view_xview, view_hview, view_xview+view_wview/2, view_yview) or point_in_rectangle(device_mouse_x(1),device_mouse_y(1), view_xview, view_hview, view_xview+view_wview/2, view_yview)){
if(device_mouse_check_button(0, mb_left)){
self.x = mouse_x
self.y = mouse_y
}
else if(device_mouse_check_button(1, mb_left)){
self.x = mouse_x
self.y = mouse_y
}
}
x = clamp(x, Obj_OuterRing_Move.x - 96, Obj_OuterRing_Move.x + 96);
y = clamp(y, Obj_OuterRing_Move.y - 96, Obj_OuterRing_Move.y + 96);
so 2 fingers on the screen. I'm trying to assign the touch with the corresponding side of the screen using those point_in_rectangles. hope some one can help