Home    LittleBigPlanet 2 - 3 - Vita - Karting    LittleBigPlanet 2    [LBP2] Help!
#1

Special attack cooldown logic?

Archive: 5 posts


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?2011-08-27 03:13:00

Author:
Unknown User


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...2011-08-27 03:15:00

Author:
Speedynutty68
Posts: 1614


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
2011-08-27 13:15:00

Author:
NcLc2010
Posts: 72


thanks i got it to work using just one timer, I had the inpiut in reset.2011-08-27 16:56:00

Author:
Unknown User


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
2011-08-27 23:08:00

Author:
Speedynutty68
Posts: 1614


LBPCentral Archive Statistics
Posts: 1077139    Threads: 69970    Members: 9661    Archive-Date: 2019-01-19

Datenschutz
Aus dem Archiv wurden alle persönlichen Daten wie Name, Anschrift, Email etc. - aber auch sämtliche Inhalte wie z.B. persönliche Nachrichten - entfernt.
Die Nutzung dieser Webseite erfolgt ohne Speicherung personenbezogener Daten. Es werden keinerlei Cookies, Logs, 3rd-Party-Plugins etc. verwendet.