BG1, PRELOAD BG2, PRELOAD

Results 1 to 5 of 5
  1. #1
    Trueking
    Guest

    Default Special attack cooldown logic?

    I have a special attack for one of my sackbots for an rpg im making, it has basic sword strikes, double jumps, rolls, and now a special attack. The special attack should be a cooldown attack, so you can only use it every couple seconds or so. I tried setting up a timer before the attack sequencers, But the timer would reset if I pressed the special attack button during the cooldown, so instead of waiting 10 seconds to be able to use the special attack again, id be waiting 20 seconds or more. So i want to be able to press the special attack button as many times as i want during the cooldown and not have the cooldown timer reset. Any help?

  2. #2
    Dat Christmas Spirit Speedynutty68's Avatar
    Points: 16,201, Level: 38
    Level completed: 69%, Points required for next Level: 249
    Overall activity: 0%
    Your First Group 7 days registered Created Blog entry 100 Experience Points 250 Experience Points
    PSN
    Speedynutty68
    Join Date
    Jul 2011
    Location
    In_The_Place_With_The_Really_R
    Posts
    1,285
    Blog Entries
    3

    Default

    Place an AND Gate and plug that into what activates the special attack. Then, have a NOT Gate and a Timer. Plug the timer into the NOT Gate and set it to countdown. Set the time on the Timer to whatever cooldown time you want. Then plug the NOT Gate into the earlier stated AND Gate. Then plug the button that activates the special attack into the Timer. That should do the trick. Well... With some Debugging it will do the trick... Lol...

    ^ Not accurate time due to me using an alternate Minecraft launcher.


  3. #3

    Default

    nutty beat me AGAIN? lol

    Well heres my ideas: Set a time to the cooldown time. Then set and AND gate with the timer plugged into it and your button, then make the AND gate reset the timer and trigger the attack.

    Well atleast (I think) my way was easier than nutty's! But he still beat me AGAIN

  4. #4
    Trueking
    Guest

    Default

    thanks i got it to work using just one timer, I had the inpiut in reset.

  5. #5
    Dat Christmas Spirit Speedynutty68's Avatar
    Points: 16,201, Level: 38
    Level completed: 69%, Points required for next Level: 249
    Overall activity: 0%
    Your First Group 7 days registered Created Blog entry 100 Experience Points 250 Experience Points
    PSN
    Speedynutty68
    Join Date
    Jul 2011
    Location
    In_The_Place_With_The_Really_R
    Posts
    1,285
    Blog Entries
    3

    Default

    Quote Originally Posted by NcLc2010 View Post
    nutty beat me AGAIN? lol

    Well heres my ideas: Set a time to the cooldown time. Then set and AND gate with the timer plugged into it and your button, then make the AND gate reset the timer and trigger the attack.

    Well atleast (I think) my way was easier than nutty's! But he still beat me AGAIN
    My way is always the easiest because I made it up. :-D And of course I beat you. I found this like a minute after he published it... xD

    ^ Not accurate time due to me using an alternate Minecraft launcher.


Posting Permissions

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