Problem tracking touch index

Get help using Construct 2

Post » Mon Oct 22, 2012 7:35 pm

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?jayderyu2012-10-22 19:37:42
Posts: 2,455
Reputation: 14,911

Return to How do I....?

Who is online

Users browsing this forum: No registered users and 2 guests