L
lexafram
Guest
Hello, i'm kinda new to game maker and i wonder how you could create an object when you click and where your mouse is.
thanks for your help
thanks for your help
if (mouse_check_button_pressed(mb_left)) // command for clicking
{
instance_create(mouse_x, mouse_y, OBJECT); // command for creating an object, mouse_x and y are the positions the mouse is at (absolute)
}
Hi and welcome to the GMC!Hello, i'm kinda new to game maker and i wonder how you could create an object when you click and where your mouse is.
thanks for your help
instance_create(mouse_x, mouse_y, OBJ);