Sprint Effect/ Button Question

Sup guys! I was curious on how you could create a sprint effect for an app game. Basically, i would like to temporarily increase my characters running speed for like 6 seconds by holding down a button, then having the game slow him down from his normal speed for 3 seconds before going back to his normal pace. I would also like to make it where I cant hit sprint again for another 10 seconds after that.

I hope you guys know what Im asking and thank you for the replies :)

Comments

  • alexconsincalexconsinc Member Posts: 54

    Make an attribute boolean called sprint and while the button is down, turn sprint to true. Then, make a rule to check if sprint is true. If so, just increase the speed with a timer of 6 seconds.
    Something like that

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949

    I'm not sure if you want the 10 second delay to start when you start sprinting or when you release/stop sprinting, so you might have to adjust this.

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

  • TheActualGamer TheActualGamer Member Posts: 19

    Thanks for the reply! Not quite sure what im doing wrong here. Maybe you could dumb it down a little bit for me more? Lol steps or a screenshot would probably make it easier for me. :) thanks

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949

    I'm guessing you were replying to @alexconsinc. Did the attached demo work for you?

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

  • TheActualGamer TheActualGamer Member Posts: 19

    @tatiang lol yeah I was. Im about to check out the demo right now, ill reply after i check it out =)

  • TheActualGamer TheActualGamer Member Posts: 19

    @tatiang Thanks for taking the time to make that demo, I am unsure however I can apply this to my game for example,

    1) The two display texts before the Change attribute rule; I'm guessing those aren't required because I already have a character made right?

    2) I pretty much just copy exactly what is shown onto my main actor and he will sprint?

    3) How can i send you a file like the one you sent me of what I have, so you can maybe catch the problem?

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    edited January 2015
    1. Right.
    2. Well, no. My demo shows how to change an attribute in the way you described. You'd need a Move or Change Velocity behavior or something like that but you'd use the game.speed attribute in the speed field.
    3. You can .zip it, upload it to a file-sharing site such as Dropbox or MediaFire and then post the download link here or send it to me in a private message. I can't promise I'll have time to fix any problems you have but I can suggest a fix if it's something simple.

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

Sign In or Register to comment.