Button Mash (x key presses in x alloted time)

  • #1, by afrlmeWednesday, 19. December 2012, 20:10 13 years ago
    A demo to show you how to create a button/key mashing type thing for your game - maybe you need to force a door open or protect yourself or maybe just need to hit something x amount of times for a mini game ...

    anyway this demo includes the 2 scripts I have written for it; the main function script for the button mash script & a live score counter which keeps track of how many times you've pressed the "x" key.

    also I have shown how you can create a progress bar of sorts by using a bit of math & then using that to increment the position of the progress bar animation image - meaning it slides up (fills) the progress bar box with each key press.

    animated a simple 10 second countdown - seemed pointless to invert my mash_score script just for a 10 second countdown - but you could use it to create a timer / time limit display for your games! - I will probably make an example of one at some point in the future.

    I don't remember what else I've added/done for the demo ...

    P.S: the vocal samples are probably not free to use commercially - I used sony soundforge to record them directly from an online text to speech converter & then I pitched them down in Reason & added some delay, eq, compression etc to make them sound much nicer.

    project file can be found here (1.6mb approx)

    Imperator

    7289 Posts


  • #2, by vozerThursday, 13. February 2014, 18:19 12 years ago
    for the record, since the link doesnt work anymore:

    https://www.dropbox.com/sh/wgfa956ohxcfwya/pTb7QqpX9t

    Newbie

    35 Posts

  • #3, by afrlmeThursday, 13. February 2014, 18:24 12 years ago
    yeah sorry about that... I haven't renewed my server yet. got until july (I think) to decide if I'm going to renew it or not. the dropbox doesn't contain all the scripts/templates I've worked on either; as far as I remember.

    Imperator

    7289 Posts