Problem with multi-touch

GuaveMediaGuaveMedia Member, PRO Posts: 1,262
edited December 2011 in Working with GS (Mac)
Hey,

what to do if 3 actors have to get 3x pressed, but when I hit the screen with all my fingers I all hit too quick,
like cheating...how to avoid this problem?

So that multitouch does not work anymore...

thx

Comments

  • scitunesscitunes Member, Sous Chef Posts: 4,047
    There are a couple of ways to do this.

    1)
    Create a rule that says when touch is pressed AND when touch.count=1
    Then have a separate actor on your hud with a graphic that says something like "Use only one finger you big fat cheater!" Set this actor's alpha to 0. Have a rule that says if touch.count >1 change alpha to 1 otherwise change alpha to 0.

    2)
    Create a small invisible actor
    constrain it to touch1.X and touch1.Y
    In your actors have a rule that says when mouse is down (it will work for touch devices, trust me) AND when overlapping with invisible actor
  • GuaveMediaGuaveMedia Member, PRO Posts: 1,262
    There is just one problem. my actors have a fixed life of 3. So when I press him, life is set to 2 and when it is zero,the actor gets destroyed..

    How to do in this case?

    Thank you :)
  • FallacyStudiosFallacyStudios Member Posts: 970
    I am having a problem with multi touch on android. It works smooth on iPhone, but as soon as I put my game on Android and play it the paddles keep bouncing, getting stuck, or following the other paddle when multi touch is used.
  • scitunesscitunes Member, Sous Chef Posts: 4,047
    @Alex - Pick one of the methods above. Then add the first rule and click the little plus on the right of the rule box to add another rule. Add the second rule. In the bottom rule box put "change self.life to self.life-1
  • Braydon_SFXBraydon_SFX Member, Sous Chef, Bowlboy Sidekick Posts: 9,273
    Scitunes - I keep seeing that your a sous chef and then your not? What's the problem?
  • GuaveMediaGuaveMedia Member, PRO Posts: 1,262
    I tried the second method but still I can kill all when I touch them with all my fingers... ://

    Also your second rule doesn't make sense or?
  • GuaveMediaGuaveMedia Member, PRO Posts: 1,262
    Is there no way to avoid the multitouch?
  • GuaveMediaGuaveMedia Member, PRO Posts: 1,262
    Okey tried couple of things but didn't work^^
Sign In or Register to comment.