Multiple touches for different actors.
Hey guys,
So, I have a top down tank game and in it I am trying to make it so when you drive with the joystick you can also shoot by touching the screen and the bullet will go to where you touched. The problem I'm having is that when you are driving with the joystick the bullets will only go to where the first touch is and not to the second touch on the screen. When I'm not touching the joystick first the bullet goes to anywhere I touched on the screen, but if I touch the joystick to drive the tank it won't shoot the bullet to the secondary touch.
Any ideas? thanks.
So, I have a top down tank game and in it I am trying to make it so when you drive with the joystick you can also shoot by touching the screen and the bullet will go to where you touched. The problem I'm having is that when you are driving with the joystick the bullets will only go to where the first touch is and not to the second touch on the screen. When I'm not touching the joystick first the bullet goes to anywhere I touched on the screen, but if I touch the joystick to drive the tank it won't shoot the bullet to the secondary touch.
Any ideas? thanks.
Best Answer
-
tatiang Posts: 11,949
Are you using game.Touches.Touch 1.X/Y and game.Touches.Touch 2.X/Y in your rules? They can be found in the Devices area of the Attribute Browser.New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User