Problem: Hold mouse and enable drag

0 favourites
  • 3 posts
From the Asset Store
Total customisation of the input! You can combine inputs from all peripherals. Make your game accessible for everyone!
  • I find myself trying to find a solution to perhaps an obvious problem? I have some code that enabled drag&drop after pressing the mouse down on an object for 0.5 sec. I've verified that it works since both a test scaling of the object works, as well as checking for the "Is enabled" condition.

    The problem is that the drag event doesn't take effect until i release the button and click & drag again. I need it to start following the mouse immediately so is there anyway for the built in behavior to work or do i need to write custom code?

    This is the current setup:

    <img src="http://i.imgur.com/QdZ3CKf.png" border="0" />

    On a side note this forum seems to have an issue with me taking too long time to write my topics since it gives me an error every time that my session time is up. >.<

  • the Dragdrop enabled just mean that drag and drop is now possible for that module. Not that you will start dragging it.

    You will probably have to make your own drag and drop, but it is not that hard.

    just set module.x to mouse.x and module.y to mouse.y while dragging.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • the Dragdrop enabled just mean that drag and drop is now possible for that module. Not that you will start dragging it.

    You will probably have to make your own drag and drop, but it is not that hard.

    just set module.x to mouse.x and module.y to mouse.y while dragging.

    Right as i suspected... thanks <img src="smileys/smiley36.gif" border="0" align="middle" />

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)