This site requires JavaScript, please enable it in your browser!
Greenfoot back
RagingAsian
RagingAsian wrote ...

2015/2/25

Mouse Info

RagingAsian RagingAsian

2015/2/25

#
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?
danpost danpost

2015/2/25

#
In world, determine mouse click to spawn using 'if (Greenfoot.mouseClicked(this))'. In actor, determine mouse drag to move using 'if (Greenfoot.mouseDragged(this))'.
RagingAsian RagingAsian

2015/2/25

#
I got the spawning set, can you help with getting an object to move along with the mouse cursor?
RagingAsian RagingAsian

2015/2/25

#
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.
RagingAsian RagingAsian

2015/2/25

#
figured that out too. anyway thanks for the help
You need to login to post a reply.