BG1, PRELOAD BG2, PRELOAD

Results 1 to 8 of 8
  1. #1

    Default Making Sackbot Abilities Unspammable

    Ok, so in my level series the player will be controlling a wizard. I have a levitation ability that lasts 2 seconds, and I'd like to make it so the player can't just keep spamming it over and over and fly through the whole level.

    I have L2 hooked up to a 2 second timer that counts down. The timer is hooked into an advanced mover and an anti-gravity tweaker. So for 2 seconds the player can float in any direction before falling back to the ground. It's working just fine, but now I need to make it so that there's a good 2-4 second space after it wears off where the player can't levitate again.

    Any ideas? I'm terrible with logic, so thanks in advance for any help!

  2. #2
    BabyFace
    Guest

    Default

    Quote Originally Posted by ccapel View Post
    Ok, so in my level series the player will be controlling a wizard. I have a levitation ability that lasts 2 seconds, and I'd like to make it so the player can't just keep spamming it over and over and fly through the whole level.

    I have L2 hooked up to a 2 second timer that counts down. The timer is hooked into an advanced mover and an anti-gravity tweaker. So for 2 seconds the player can float in any direction before falling back to the ground. It's working just fine, but now I need to make it so that there's a good 2-4 second space after it wears off where the player can't levitate again.

    Any ideas? I'm terrible with logic, so thanks in advance for any help!
    ok so hears the deal. keep everything the way you have it. but include this in your logic. place your output to another timer to count up for however long you want your recharge time to be. then, place your output for that timer into the reset of the count down timer. that should make it so you can no longer spam on the controls.

  3. #3

    Default

    You're a genius! But seriously, thanks a ton. Sounds like it'll work like a charm.

  4. Thanks!


  5. #4

    Default

    Quote Originally Posted by BabyFace View Post
    place your output to another timer to count up for however long you want your recharge time to be. then, place your output for that timer into the reset of the count down timer. that should make it so you can no longer spam on the controls.
    Ok so I tried this and it's not quite working. By "output" do you mean the output of the first timer that's counting down? Or L2? I tried both, and it's still spammable. The first timer just keep resetting even if the second timer is still counting up. Any thoughts?

    I'll try to troubleshoot it in the meantime.

  6. #5

    Default

    Quote Originally Posted by ccapel View Post
    Ok, so in my level series the player will be controlling a wizard. I have a levitation ability that lasts 2 seconds, and I'd like to make it so the player can't just keep spamming it over and over and fly through the whole level.

    I have L2 hooked up to a 2 second timer that counts down. The timer is hooked into an advanced mover and an anti-gravity tweaker. So for 2 seconds the player can float in any direction before falling back to the ground. It's working just fine, but now I need to make it so that there's a good 2-4 second space after it wears off where the player can't levitate again.
    It should just be a matter of putting another count down timer in front of the first but with a longer duration, unless I'm mistaken.

  7. #6
    BabyFace
    Guest

    Default

    im sry...i forgot 1 minor detail...place your button output into a counter_target count 1 then from counter into count down timer_from count down timer to count up timer place count up timer output into counter reset...hope you understand...feel free to friend request me

  8. #7

    Default

    That worked great, BabyFace! Thanks for the help. I really appreciate it.

  9. #8

    Default

    Another way to do this is to have an enable (Battery) on a sequencer to set your logic in motion. Map the button you want to the sequencer Start Forward Input. Set the sequencer length to the amount of time you want your cooldown to be and it will work perfectly as you cannot start a sequencer again until it's finished or if you reset it.
    Last edited by RSQViper; 03-09-2011 at 09:59 PM.
    Dizzy Wheel Survival Challenge (Cool Levels!) - Dark Water Chapter 1 (Cool Levels!) - Dark Water Chapter 2

    I broadcast on JustinTV as well if you are looking for people to play with or if you're just bored! http://gaming.justin.tv/rsqviper

    And follow me on TWITTER to see when I'm broadcasting sweet games (like LBP2!)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •