drag and drop for ipad

Hi all. Im totaly new to this and just need some help. im on a pc and trying to figur out how to make an drag and drop funktion. Please help :).

Mvh MAttias

Comments

  • PedagogenPedagogen Member Posts: 10

    i just cant find the dragger funktion

  • SLOCM3ZSLOCM3Z Member Posts: 797

    Make a rule that says "if touch is pressed" :do: "move to mouse.position.x" "move to mouse.position.y"

  • MentalDonkeyGamesMentalDonkeyGames Member Posts: 1,276
    edited May 2015

    I´d make it like this:
    -When touch is pressed
    -Constrain self.position X to game.mouse position X
    -Constrain self.position Y to game.mouse.position Y

    Mental Donkey Games
    Website - Facebook - Twitter

  • SLOCM3ZSLOCM3Z Member Posts: 797

    @NipaDidIt Oops. That is what I meant. Thanks for fixing my error :smile:

Sign In or Register to comment.