L
lexafram
Guest
So i previously asked how to create an object on click and i tried different forms but non really worked:
Form 1: i went i the object i tried to spawn and created a left click pressed event where i put the code:
instance_create(mouse_x,mouse_y,obj_lightning)
that didn't work
Form 2: i made a create event where i put the command
if (mouse_check_button_pressed(mb_left))
instance_create(mouse_x,mouse_y,obj_lightning)
that didn't work either
does anyone know why it doesnt work and how to fix this?
thanks alot for your help
Form 1: i went i the object i tried to spawn and created a left click pressed event where i put the code:
instance_create(mouse_x,mouse_y,obj_lightning)
that didn't work
Form 2: i made a create event where i put the command
if (mouse_check_button_pressed(mb_left))
instance_create(mouse_x,mouse_y,obj_lightning)
that didn't work either
does anyone know why it doesnt work and how to fix this?
thanks alot for your help