Drag and Drop behavior not working

This forum is currently in read-only mode.
From the Asset Store
Now you can drop everything in your game with sound :)
  • I'm attempting to use the drag-and-drop behavior to drag and drop objects in a game I'm making for my school library to teach students about the Dewey Decimal system. However, the object won't move when I mouse over it. I created a "Mouse and Keyboard" object, and the drag target can sense when it's being clicked on (I can make it flash), but it won't move. Is there something that I'm missing?

    EDIT: I'm enabling/starting the behavior for the object when the layout starts.

  • Well I can't really tell what you did wrong, because I recreated your setup out of curiosity and it works like a charm. I added a ground and physics-behaviour just for fun.

    Maybe you will spot a difference that could be the reason its not working for you:

    http://dl.dropbox.com/u/12049513/Constr ... n_drop.cap

    Best regards,

    Noel

  • I figured it out. When I created the sprite, I made it out of two boxes and assumed that the interiors would also be part of the object. They weren't. Derp.

  • On the picture editor for sprites, there's a weird icon you can click that let's you change the collision mask, so you could have transparent spots still be clickable

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • It was a placeholder sprite anyways ;P

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