Master Cabalist
Member
Hi
I'm trying to detect when a player clicks but doesn't click on an object. Basically I want to detect them clicking on empty space and moving them there. This is the code I have so far:
I'm trying to detect when a player clicks but doesn't click on an object. Basically I want to detect them clicking on empty space and moving them there. This is the code I have so far:
Code:
if (mouse_check_button_pressed(mb_left))
{
if (!instance_position(mouse_x, mouse_y, all))
{
show_debug_message("Clicked in the grass");
//if (flight == true)
//