Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Button Mashing Grapple

Discussion in 'Scripting' started by lordofduct, Mar 30, 2017.

  1. lordofduct

    lordofduct

    Joined:
    Oct 3, 2011
    Posts:
    8,513
    Remember how in old games, like say like a survival horror... you could get grappled and then you would mash buttons until you broke free.

    What I'm wondering is... what do you think the actual command logic was behind it?

    Like what sequence/non-sequence whatever it was that the code actually watched for to be considered sufficient "mashing" to break free?
     
  2. MD_Reptile

    MD_Reptile

    Joined:
    Jan 19, 2012
    Posts:
    2,664
    I always kind of thought it was just how many times you tapped overall in most cases... but then again, it could be more elaborate, idk...