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.
@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?
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.
Comments
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.
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
@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?
@Socks you seem like you would know this... Read the thing i said before this. Any help!
Is this a clone of 2048 ?
no @Socks
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.
@zweg25 Got it on my own. Thnks for the help though