How do I create a touchscreen drag and drop system?

0 favourites
  • 7 posts
From the Asset Store
Fully commented source code/event sheet & sprites to create a space shooter game
  • Hi Guys, I'm creating a child game which is drag and drop and basically the player will have to decorate a cake for example... and he will drag and drop the objects above the cake.

    I would like to know how to create an effective drag and drop system..


  • Olá, colega brasileiro! Interessante o foco em um jogo infantil, legal!

    Bom, basta atribuir o behavior "drag and drop" para os objetos os quais você deseja que sejam arrastaveis. Você deseja configurar para que o objeto arrastado fique fixo no bolo, correto? Se sim, posso te ajudar passo-a-passo.

  • as DaniellMesquita said, use drag and drop behavior. Then when the object overlap with a cake, do a checking whether it is on drop condition then set the action to drop. Additionally you can include pin behavior to attach the object to the cake as the cake move.

  • Yes. The idea is pinning the chooseen objects in cake to prevent objects falling when cake have an movement, and prevent the people to remove objects of cake in occasions that will be necessary.

  • Oh thank you so much Guys !!!!! I will try this !

    Just to know, may I must do something to make the game recognize touchscreen using this drag and drop behavior? or it recognizes automatically?

    , manda seu facebook por pm !! valeu pela ajuda.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • caiocesar , ele irá reconhecer automaticamente, tanto Touch quanto Mouse. Quanto ao FB, te envio quando eu puder, tendo 500 rep. Boa sorte com o jogo. Assim que possivel irei te contactar no Facebook e poderei dar uma ajuda mais próxima do jogo.

  • Muito obrigado!

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