How do I drag and drop an actor with mouse

Modified: 2008/04/29 16:27 by VinayD - Categorized as: Game Creator, How To Guides
Edit

Drag and drop with mouse

Basic Idea: Use the handy shortcut "support drag & drop with mouse". See notes below if you want to create this behavior from scratch. .

Sample Game: http://www.popfly.com/users/team/HowDoI-DragAndDrop

Details: Using the shortcut works great. But if you really want to know how this works, read on.

Actor->Behaviors->Event
Key thing to note here is that mouse event is defined for "only on me" meaning the event is triggered only when you click on the actor.
Image

Mouse Event for drag & drop support (Click the image to view full size)


Actor->Behaviors->Motion
Key thing to note here is that motion is defined toward mouse and While Receiving Event.
Image

Motion for drag & drop support (Click the image to view full size)

Privacy. Terms of Use. Trademarks.
ScrewTurn Wiki version 2.0.22. Some of the icons created by FamFamFam.