[SOLVED] Multi touch issues

I have a problem with the third person touch controller, when you touch the right side of the screen and without releasing finger, you also touch the left side (movement, animations) the animation remains playing if you’ve released the left side finger.

Any ideas how to solve this issue?
https://playcanvas.com/project/770783/overview/third-person-template-x

In my case:

if (this.app.touch !== null) {
    if (this.cameraScript.LTouch){
        this.checkTouch();
    } else {
        if (this.player.falling == false && this.player.isSitting == false) {
        this.direction = 'Idle';
        }
    }
}
1 Like