Mouse button up When player does multitouch
Hey everyone thanks in advance,
I have a bug in my game that is almost done. I can't quite figure it out. Firstly, my game is not a multi touch game. But, if player accidently "rests" additional finger on screen at the start of game the game basically breaks. I have two rules that trigger when mouse button is up. One causes the player to shot an object and two the next object interpolates down into position for the player to shoot it. When the player is touching the object to be shot and somewhere else on the screen, when they lift their finger up the object shoots but the next object does not interpolate down into the given position to be shot. And since the player can only shoot object in that given position the game is broke. Does anyone have any ideas on how to fix this issue. The weird thing is that after the first shot the player can touch object to be shot and additional spot but object doesn't shoot until both fingers are up. This is my first game and it's almost done. This forum has been awesome. Thanks in advance and sorry if this is confusing.
SocializeTwitter , **My Site ** **Play Loop Zen Free **iOS HERE, Google Play HERE
Comments
Try adding a game.Touches.Count condition to your rule, set it to 1 and see if that works for your game. This way your rule will only work if one finger it is touching the screen. To do this select Attribute then in the "Attribute Browser" Devices/Touches/Count = 1.
Universal Binary Template - Universal Binary Template Instructions Rev 4 (Short) - Custom Score Display Template
@colander thanks bud! This took some messing with for me since ive never used the game.touch.count but I figured it out. I had to change one of my rules when button is up game.touch.count = 0
thanks again
SocializeTwitter , **My Site ** **Play Loop Zen Free **iOS HERE, Google Play HERE