Problem tracking touch index

0 favourites
  • 1 posts
From the Asset Store
All popular touch mechanics - scrolling, zooming, swiping
  • ok, I'm having a problem with tracking the wrong touch index.


    it's using Touch.touchcount - 1 to catch the index.

    1. Player presses the flamethrower attack button. flameI = 0

    2. Player starts to move. moveI = 1, flameI = 0

    3. player stops touching flamthrower. flameI = nil, move = 1

    behaviour should stop the flame attack, but continue to have the player still moving. However, that is not what happens. The player control starts getting incorrect input.

    The problem that occurs is seems to relate to the 0 index count.

    case A

    1. shooting

    2. move

    3. stop shooting

    results in s a problem

    case B

    1. shooting

    2. move

    3. some other third finger action

    4. release flame

    causes problem

    case C

    1. shooting

    2. move

    3. third finger

    4. release third finger or release move

    works fine as index 0 is still in contact

    problems come up whenever index 0 is released while continuing to use other index input. So it seems that Touch.touncount - 1 is not a good reference to get the touch index. which is verified by Ashley. So I just can't seem to solve this multi touch issue. It's also a fairly critical problem. Anyone know a solution?

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)