How do I spawn object to mouse position.
Develop games in your browser. Powerful, performant & highly capable.
System -> Create object (Mouse.X, Mouse.Y)
but let say i wanted spawn object inside an object like cookie clicker, so if i click on the cookie it will get mouse x mouse y and spawn at that point. but if i click outside off the cookie it will not spawn.
Add the condition is overlapping
Mouse on left button clicked
mouse is overlapping cookie
mouse on object clicked cookie