• Advertisement

Archived

This topic is now archived and is closed to further replies.

A good tutorial about Drag&Drop in Games

This topic is 5952 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello, I have tryed out everything which I can imagine of how writing a Drag&Drop structure, but it doesn´t works. Then I have searched in the internet to find some tutorial about it, have´n´t found anything relevanted yet. If anyone has an idear on which website or in which book I can find some basics about writing a drag & drop structure, please tell me

Share this post


Link to post
Share on other sites
Advertisement
You need a message based state machine - like Win32 programming.

First handle mouse events
Mouse_Up, Mouse_Down, Mouse_Move

Mouse_Down followed by Mouse_Move -> Drag

Mouse_Drag followed by Mouse_Up -> Drop

Magmai Kai Holmlor
- Not For Rent

Share this post


Link to post
Share on other sites

  • Advertisement