Drag and Drop behavior not working

This forum is currently in read-only mode.
From the Asset Store
320 high-quality cinematic sound effects for trailers and game scenes.
  • 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.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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

  • It was a placeholder sprite anyways ;P

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