Touch and Swipe Controls
Okay so first I'll explain what I have set up. I have an actor (called touch screen) that covers the screen that I use for my touch control input. I want to have 3 separate controls. A single press, swipe right and swipe down. Each one controls what a a different actor does on screen (but thats not important)
I set up a rule on touchscreen saying, when actor receives touch change attribute jump to true. This makes the actor jump... obviously. I then set up a another set of rules on touchscreen for a swipe right motion. I did this following the gamesaladcookbook tutorial on youtube (Thanks Tshirtbooth they're great!
) 
So basically I have 2 attributes called touch and release that record the X position of a touch and then a release. Then I have a rule that says if touch is < release change attribute slide to true. Makes the character slide.
The problem I'm having now is that, whenever I swipe right on the touchscreen screen actor, the initial touch of my swipe causes my character to jump. I realised why this is happening but I can't seem to be able to solve it. Any ideas?
Sorry for the long post but I hope I got my problem across to you. Any help will be very much appreciated.
Thanks.
I set up a rule on touchscreen saying, when actor receives touch change attribute jump to true. This makes the actor jump... obviously. I then set up a another set of rules on touchscreen for a swipe right motion. I did this following the gamesaladcookbook tutorial on youtube (Thanks Tshirtbooth they're great!


So basically I have 2 attributes called touch and release that record the X position of a touch and then a release. Then I have a rule that says if touch is < release change attribute slide to true. Makes the character slide.
The problem I'm having now is that, whenever I swipe right on the touchscreen screen actor, the initial touch of my swipe causes my character to jump. I realised why this is happening but I can't seem to be able to solve it. Any ideas?
Sorry for the long post but I hope I got my problem across to you. Any help will be very much appreciated.
Thanks.
Comments