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

Cooldown Timer

Archive: 3 posts


So basically I need a cooldown timer.

I have: A car, a rocket and I need, when a button is pushed, to fire the rocket for 2 seconds then letting it cool down for 3 seconds so it can be used again.
2011-02-10 19:20:00

Author:
Mitos
Posts: 37


User a timer with speed scale as input method. negative signals will make the timer go down, positive will make it go up.

And then you can either AND the timer or use a sequencer with positional input to see if it has a signal.
2011-02-10 19:24:00

Author:
Foofles
Posts: 2278


I'd think it'd be easier to just use a 5 second timer and a sequencer.

Put a timer on your microchip and make it five seconds. Connect it's output to a sequencer and to it's own reset switch.

Add a sequencer, set the time per stripe to 1, and make the board 5 stripes. Put a battery on it that fills the entire first two bars. Set it to "Positional" for the input.

Hook your firing timer to the sequencer. Hook the battery on the sequencer to your firing mechanism.

So here's what happens. The moment you press the button, the firing timer starts filling up. This moves the line on the sequencer over your battery which starts firing rockets. When the firing timer gets over 2 seconds, the line on the sequencer moves off the battery and you stop firing. Now we're in cooldown. When this timer fills up, it resets itself you can do it all over again.

Modifications:

You can have other events reset the firing by just using the reset switch on the timer.

You can have smoke emitted during the cooldown by putting another battery on the sequencer that fills the remaining 3 bars. Hook this one to your smoke emitter.
2011-02-10 20:25:00

Author:
Shanghaidilly
Posts: 153


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.