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

Cooldown Timers (For Cannons and Turrets)

Archive: 8 posts


Hey there, Xero here with a simple tutorial on how to make a cooldown timer which can be used for cannons or turrets. This technique is especially useful for turrets or weapons that you don't want to be able to shoot forever. This logic will cause the weapon to overheat if shot constantly for a specified amount of time.


http://i102.photobucket.com/albums/m88/justin11213/APhoto_1-1.jpg

The AND gate(A)'s other input (off screen) should be the button that you want to use to shoot with. If your object shoots/emits with R1, wire R1 to the top input.

The first timer(B), should have its input set to direction. Tweak this to set how long the weapon will shoot for before overheating (you can replace this with a counter if you want a certain number of shots instead).

The second timer(C) is your cooldown, i.e. how long the weapon will be disabled after overheating. It's input should be set to Start Count Down.

The emitter is there to shoot the projectile, but you can put that anywhere you want. The sound object is there to make a sound to indicate when the cooldown has finished.

http://i102.photobucket.com/albums/m88/justin11213/APhoto2.jpg

It should now work! Have fun blasting away your friends.

Note: Optionally, you can also place the timers on the object instead of a chip, and set them to visible. This will show players how close they are to overheating, and how long they have to wait to shoot again.

Stay tuned for more tutorials in the future!

Send me a PM if you have any questions!
2011-01-21 04:44:00

Author:
xero
Posts: 2419


Thanks, I just made this in lbp1 - I could think how it was done with the new logic, I guess we all need to shift our thinking patterns a little2011-01-21 08:38:00

Author:
stuk71
Posts: 86


Wow man I sure needed this I was looking for a cooldown timer for the machine gun on my Tank much appreciated thanks a bunch laterez!2011-02-14 09:24:00

Author:
darkknight2010
Posts: 69


Awesome tutorial mate. Was fiddling with it a few times to get it hehe. Keep them tutorials comin'!2011-02-19 07:10:00

Author:
illuminationx
Posts: 860


This was really helpful this was one of the last touches I'm putting on my new level.2011-02-19 21:42:00

Author:
Clivefan11
Posts: 106


Thanks man, just what i was after for my Helghast vehicles.2011-05-16 19:33:00

Author:
Unknown User


isn't A an AND gate, not or?2011-07-03 16:46:00

Author:
flyinhawaiian
Posts: 357


isn't A an AND gate, not or?

A simple typo. Fixed!
2011-09-03 07:29:00

Author:
xero
Posts: 2419


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.