Found problem with control shooter template. Please read!!!

Hey everyone,
I was having trouble when controlling my game from the iPhone. Every time I touched a joystick control it would peg to a side even though I wasn't touching it there. After some debugging I found there was some code that was causing this. If you are having the same problem I offer the solution.
Go into the prototype joystick.
Find the code that states:
Rule: Touch 5
Actor receives event overlaps or collides with actor type "your actor"
set self.touchId to 5
Turn this rule off and it should no longer peg to a certain side when touched the wrong way.
Hope this helps anyone who is having trouble.
I was having trouble when controlling my game from the iPhone. Every time I touched a joystick control it would peg to a side even though I wasn't touching it there. After some debugging I found there was some code that was causing this. If you are having the same problem I offer the solution.
Go into the prototype joystick.
Find the code that states:
Rule: Touch 5
Actor receives event overlaps or collides with actor type "your actor"
set self.touchId to 5
Turn this rule off and it should no longer peg to a certain side when touched the wrong way.
Hope this helps anyone who is having trouble.
Answers
I wish I found this AGES ago!!! I have just made the change, and will have all of my testers look out for (hopefully) no "glitching" once and for all!
Thank you!!
Jack McGraw
Bad news
Thanks,
Jack McGraw
1.Make a new attribute for the game called Debug as an integer.
2.Make a new actor called debug and place it on the scene that you use the thumb stick
3.In thumbstick that is pegging. Constrain touch id to Debug Attribute.
4.In debug actor place a display text and set the attribute to debug so that it will show the touch id when it pegs. It might not be 5 but it will give you an Idea of what is causing the error.