Page 1 of 1

Drag and drop

Posted: Sun Mar 17, 2013 8:39 am
by Rob.m
Hi,
I am new to Love and I am just playing around with it to see what it can do. I am wondering how to implement drag and drop. I don't see any 'move' event for the mouse events. Does this mean that I have to impliment drag and drop frame by frame? or can I cheat and use a custom cursor? What is the best way?

Re: Drag and drop

Posted: Sun Mar 17, 2013 10:02 am
by Pinkishu
Theres a tutorial on the wiki for what I think you are trying to do:

http://nova-fusion.com/2011/09/06/mouse ... in-love2d/

Re: Drag and drop

Posted: Sun Mar 17, 2013 10:04 pm
by Rob.m
Thanks Pinkishu,
A couple of simple changes and I have it snapping to a grid.