touch is pressed help

kipdevkipdev Member Posts: 275

Hey guys I want to have a scene with 3 actors but what i want is to have a rule about rather or not they are touched in the right order to be able to win. Anybody know how i could set something like this up?

Comments

  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934

    You'll need some attributes and just change them from false to true. And track if they are touched in the right order.

    If 1 is touched change 1 to true

    If 2 is touched and 1 is true change 2 to true

    • otherwise if 2 is touched and 1 is false
      • FAIL!!

    If 3 is touched and 1 is true and 2 is true
    -WIN
    --otherwise

    --- if 3 is touched and 1 is false or 2 is false.

    FAIL

    Etc....

  • kipdevkipdev Member Posts: 275

    I see. Makes sense actually, thanks alot buddy

Sign In or Register to comment.