The curse of the phantom touch...
LordTarantor
Member, PRO Posts: 890
Hello everyone:
I decided to create this post because the last one I did about this topic disappeared even after trying to keep it alive for 3 days.
The problem is the touch. I am using the joystick and some firing buttons. The situation is that if I press one of the firing buttons and then I press the joystick it moves to the direction of the pressed button making the actor to travel to that direction. Its like the touch stays in the position of the pressed button and when trying to move the joystick it just snaps to that direction.
I been 4 days trying to solve this without any luck, please help.
I decided to create this post because the last one I did about this topic disappeared even after trying to keep it alive for 3 days.
The problem is the touch. I am using the joystick and some firing buttons. The situation is that if I press one of the firing buttons and then I press the joystick it moves to the direction of the pressed button making the actor to travel to that direction. Its like the touch stays in the position of the pressed button and when trying to move the joystick it just snaps to that direction.
I been 4 days trying to solve this without any luck, please help.
Comments
Did you copy and paste it into another project? If so, did you check that you re-created all of the attributes that are needed? Did you check all of the otherwise sections?
It is a continual problem for people on here, me included. The best solution I found is to isolate the area where the fire buttons are and not allow the touch point actors to move there. The other option is to look at the 2 joystick demo in codemonkeys shared project and see how he achieves the separate pick up/put down rules with each stick and implement these things into a fire button.
If you can look at it you will notice tha before you make a move with the joystick if you put a finger any were on the right side and then try to meve the joystick it will snap to that side.
To isolate the fire buttons I made sure that the touch actors could not detect touches in the area of the screen where my fire button is by adding a rule that to be able to constrain position to the finger position then x<240. I seem to recall checking that the stick has no rules that say 'when touch is pressed' it only responds to collisions with the touch points.
If I had time I would set up a demo project of a single stick and 3 buttons, but have a lot on at the moment. If I get some time in the next couple of weeks I will try because a few people ask this question.
Thank you for all the support and most important, thank you for your patience.
It was at the start of the project when I changed it so can't quite remember off the top of my head. But I think I may have rewrote the rules for how the actor you controlling responds and when it responds. I think I deleted some of the touch actors too, although im not sure.