where's the attribute for swipe?
I can't find it. Is is supposed to be in devices or where is it?
Best Answer
-
JakeMor Posts: 136
those features aren't implemented directly, but with a little bit of code they can be obtained organically.
Here are a few links to check out:
swipe
http://gshelper.com/how-to-move-with-swipe-up-down-left-right/
shake
hope that helps! pm for any other questions
Answers
That tells you how to swipe in directions. How would that change if you wanted to make it so if you swipe an actor, it destroys?
I tried that and it didn't work. That's pretty obvious. I was just wondering what exactly is the "swipe condition." I tried this but not sure if it was right:
____________________
RULE: touch is pressed -- change attribute game.touchX to game.MousePositionX, change attribute game.touchY to game.MousePositionY
RULE: touch is released -- change attribute game.releaseX to game.MousePositionX and change attribute game.releaseY to game.MousePositionY and destroy actor
____________________
Sorry if I confused in the question. I obviously know how to do that. I was just a little confused on the swipe condition part. Sorry @uptimistik
Wow. Sorry. Completely forgot about that thread.
@tenrdrmer
@tenrdrmer
Sorry for all the confusion guys. I got it, I was just missing one step. Thanks for your help.