2 button touch to proceed?

xcixci Member Posts: 2
how can i do something like this in gamesalad?
If button 1 and button 2 is touch. It will proceed to my next action.

Comments

  • xcixci Member Posts: 2
    I have my button setup already and i can do the action with 1 button only.
  • WingmanappsWingmanapps Member Posts: 458
    Create two new Boolean attributes called button 1 and 2

    Button 1 actor
    If touch is pressed
    Change attribute game.button1 to true

    Button 2 actor
    If touch is pressed
    Change attribute game.button2 to true

    Create new rule
    If game.button1 = true
    If game.button2 = true

    Process to what ever you want
  • xcixci Member Posts: 2
    thanks I'll try that tonight.
  • CodeMonkeyCodeMonkey Head Chef, Member, PRO Posts: 1,803
    Create two new Boolean attributes called button 1 and 2

    Button 1 actor
    If touch is pressed
    Change attribute game.button1 to true
    Otherwise
    Change attribute game.button1 to false

    Button 2 actor
    If touch is pressed
    Change attribute game.button2 to true
    Otherwise
    Change attribute game.button2 to false

    Create new rule
    If game.button1 = true
    If game.button2 = true

    Process to what ever you want
    Don't forget to change them to false when not pressed. Edited in quote.
Sign In or Register to comment.