im trying to click with mouse on a button then an object is created on the mouse and follows the mouse until clicked again where it is then placed down... the way im doing it now works terribly so has anyone got a better way of doing it...
heres how im doing it now;
Variable PlaceObj = 0
Mouse - On left button clicked on (button) - set PlaceObj to 1
- Create obj (object) at mouse.x, mouse.y
system - PlaceObj = 1 - Set position to round(mouse.x/16) * 16, round(mouse.y/16) * 16
- Every tick
mouse - on any click - set PlaceObj to 0
- set position to self.x, self.y
Issue with this is, it only lets me place one of each object.
P.S Sorry i dont know how to import image, tried making it as clear as i can.