Would any one happen to know how to Spawn an object when clicked by a mouse, follows the mouse when pressed, and is put into a set location when not pressed?
In world, determine mouse click to spawn using 'if (Greenfoot.mouseClicked(this))'.
In actor, determine mouse drag to move using 'if (Greenfoot.mouseDragged(this))'.
Never mind figured got it figured out, although can someone help me can someone help me get the object go into a set location when the mouse is clicked? right now, the object just follows the mouse.