issues with multitouch, only one touch work

FamTechAdminFamTechAdmin Member Posts: 47
edited May 2015 in Working with GS (Mac)

Hi.

Im trying to add multitouches to an image. If pressed once, a boolean value becomes true. If pressed again, the boolean value becomes false instead and vice versa.

so far it only reacts to the first touch.

this is how I set up the rules

Rule 1...
....actor receives event --> touch is pressed
....Attribute -->game.Touches.Active.Touch1 is true
.......Attribute --> game.isRuby3Pressed is true

Rule 2...
....actor receives event --> touch is pressed
....Attribute -->game.Touches.Active.Touch2 is true
.......Attribute --> game.isRuby3Pressed is false

Only Rule1 works.

am I missing something?

Comments

  • JimmyMesserJimmyMesser LondonMember Posts: 235

  • FamTechAdminFamTechAdmin Member Posts: 47

    @JimmyMesser

    thank you for the tutorial but I´ve already seen it.

    I´m afraid, it wasn´t any help.

  • LovejoyLovejoy Member Posts: 2,078

    @FamTechAdmin So you just want the boolean to turn true false true false? If so just make a rule

    When touch is pressed
    Change attribute game.isRuby3Pressed to not(game.isRuby3Pressed)
    
  • FamTechAdminFamTechAdmin Member Posts: 47

    @Lovejoy

    Tried that version first, but that didn´t work either... i have to look at the rest of my rules and attributes, maybe something there is causing this.

  • The_Gamesalad_GuruThe_Gamesalad_Guru Member Posts: 9,922

    See my videos on multitouch.

  • FamTechAdminFamTechAdmin Member Posts: 47

    @The_Gamesalad_Guru

    I´ve been already looking at them and still not able to get mine to work. :(

  • FamTechAdminFamTechAdmin Member Posts: 47

    I found the bug. it was located in my second image.

    the issue has been solved.

    I appreciate all your help, thank you from the bottom of my heart.

Sign In or Register to comment.