new LogicDragDrop()
A component that allows an object to be dragged and dropped. Can use collision to prevent dropping the objects in certain locations.
- Source:
Listens to Events:
- platypus.Entity#event:camera-update
- platypus.Entity#event:component-added
- platypus.Entity#event:handle-logic
- platypus.Entity#event:handle-post-collision-logic
- platypus.Entity#event:no-drop
- platypus.Entity#event:pointerdown
- platypus.Entity#event:pointermove
- platypus.Entity#event:prepare-logic
- platypus.Entity#event:pressmove
- platypus.Entity#event:pressup