Drag and drop

General discussion about LÖVE, Lua, game development, puns, and unicorns.
Post Reply
User avatar
Rob.m
Prole
Posts: 23
Joined: Mon Mar 11, 2013 1:57 am

Drag and drop

Post 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?
Pinkishu
Prole
Posts: 5
Joined: Sat Mar 16, 2013 5:56 pm

Re: Drag and drop

Post 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/
User avatar
Rob.m
Prole
Posts: 23
Joined: Mon Mar 11, 2013 1:57 am

Re: Drag and drop

Post by Rob.m »

Thanks Pinkishu,
A couple of simple changes and I have it snapping to a grid.
Post Reply

Who is online

Users browsing this forum: Google [Bot] and 5 guests