Jump to content
  • Advertisement

Archived

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

Nordgeist

A good tutorial about Drag&Drop in Games

This topic is 6069 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
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!