How do i do a swipe like in 2048?

Anyone know?

Comments

  • camerondamancamerondaman Member, PRO Posts: 13

    one way to do it is record the x or y when touch is pressed and record x and y when touch is released. use some math operations to determine the swipe direction.
    only problem with this is that they need to release
    but this is the basic concept.

  • zweg25zweg25 Member Posts: 738
    edited June 2014

    Not trying to advertise (I am not sure if this breaks the forum rules, if it does I apologize), there is a template on http://www.deepbluemarket.com/product/2048-template/

    Another template on the GS Marketplace: http://marketplace.gamesalad.com/#category=13&product=31846

  • AngryBoiAngryBoi Member Posts: 586

    @camerondaman‌ @zweg25‌ That is not quite what I'm looking for... Let's say i have a single block, and if i swipe up, it moves about 50 pixels up... Or whatever direction i swipe, the block moves that way. Does anyone know how to do that?

  • AngryBoiAngryBoi Member Posts: 586

    @Socks you seem like you would know this... Read the thing i said before this. Any help!

  • SocksSocks London, UK.Member Posts: 12,822
    edited June 2014

    @MoneyBags said:
    Socks you seem like you would know this... Read the thing i said before this. Any help!

    Is this a clone of 2048 ?

  • AngryBoiAngryBoi Member Posts: 586

    no @Socks

  • zweg25zweg25 Member Posts: 738

    I think that template is what you want. You change the size of everything and the distance of the swipe easily. All you have to take out is the background grid actor, and the spawning of other 2048 pieces.

  • AngryBoiAngryBoi Member Posts: 586

    @zweg25 Got it on my own. Thnks for the help though

Sign In or Register to comment.