Drag and drop on android

0 favourites
  • 7 posts
From the Asset Store
Now you can drop everything in your game with sound :)
  • Hi there,

    Im struggling with this for almost a day, i would appreciate if anyone can help.

    I want to make an item appears when an object is touched (i solved that), and drag it and drop to another object, wich is a field.Like taking a apple and dragging it into a basket where it stays.

    Im using a touch function for android.

    Can anyone help me on this?

  • You just need to put the "Drag & Drop" behavior on the object

  • You just need to put the "Drag & Drop" behavior on the object

    Yeah i just figured out :).Thanks, but do you know how to do this?

    When an apple is dropped in the basket, you can't drag it anymore.

    I tried with global variables but it is still moving.Any idea?

  • Hmm... You just need to disable the behavior when it's overlapping the basket:

    -> Apple: On drop

       Apple: Is overlapping Basket

          - Apple: Set DragDrop disabled

  • Hmm... You just need to disable the behavior when it's overlapping the basket:

    -> Apple: On drop

       Apple: Is overlapping Basket

          - Apple: Set DragDrop disabled

    You mean dragdrop enabled (invert)?

    Tried and it is the same problem :/.

  • Well, let's see if I understood your problem... You need to click a button and spawn an apple, and then drag this apple to a basket and disable this drag, is that it?

    Example: Spawn_Apple.capx

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Well, let's see if I understood your problem... You need to click a button and spawn an apple, and then drag this apple to a basket and disable this drag, is that it?

    Example: Spawn_Apple.capx

    Yeah exactly, and i solve the problem, thanks for the help mate! :).

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