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

How to temporarily block Controllinator inputs?

Archive: 5 posts


Hey guys, so my title might be misleading. Let me paint the scenario. I'll highlight/bold the important bits if you want to avoid a wall of text.

I am making a tower defense/strategy game. Things have been going smoothly, but I have hit a bump. Part of the strategy of the game is that every weapon at your disposal has a limited number of uses before it hits a cooldown period, during which that weapon or mechanism will not activate. When that cooldown period is over, the weapon will be free to use again.

So here comes the issue:

The main gun, uses an emitter to fire lasers. I attached the X button on my Controllinator to the emitter that fires as well as a timer set to speed-scale (because that appropriately tracks how much ammo the player is using) that counts how long the player has been firing for. After 5 seconds worth of shots, ideally, I want the emitter to be unresponsive to button presses, as in, not shoot lasers, even if the players tried, for about 4 seconds while the laser cannon "cools down", similar to reloading a gun in first person shooting games where the player cannot shoot.

I attached the timer above to another timer below it that doesn't run on speed-scale, but rather a count up timer that shows the player how much time left before they can shoot again. Problem is, though various triggers and XOR gates can indeed cut off my X button's power supply to the emitter, without a power supply, the emitter fires on its own anyway, as if it wasn't connected to anything. This problem would be much easier to solve if emitters had more than one input, but they dont .

Now the question:

Is it possible, through gates and splitters and what not (or whatever has to be done really) to cut off supply to an emitter to stop it from emitting completely for a brief period of time? The end goal here is to have it so that when the laser (emitter) has used up all its time (ammo) shooting, there is a period of time when the emitter cannot emit anything. When that cooldown timer runs out, all the timers will reset, and this process will loop as many times as the player runs out of time (ammo).

Theoretically, I'd say the answer lies in making it so that the emitter stays connected to the X button on the Controllinator, (so that the emitter doesn't act as if its not connected to anything, which results in a steady beam of emitted items), but having it so that something blocks the X button's signal to the emitter during the cooldown timer.

Sorry for the wall of text, any help would be greatly appreciated guys! Promise to check your page out and see what kind of levels you have if you post with an answer so I know who ya are!
2011-01-20 22:30:00

Author:
Lostwind
Posts: 29


Put the DCS or just the Emitter, inside of a MicroChip then hook the thing that you are using into the bottom of that MicroChip.
That is an On/Off switch so whenever it gets activated the MC turns off, turning off the DCS and/or the Emitter. Hope that helps
2011-01-20 22:35:00

Author:
Bremnen
Posts: 1800


Unfortunately that didn't work, the emitter which was on the microchip kept emitting when the timer ran off. My guess is that because the timer shuts off power to the microchip, the emitter works like a plain none hooked up emitter and fires. You're solution did give me an awesome idea I will try though! I do appreciate your help very much that you took the time to reply 2011-01-20 23:26:00

Author:
Lostwind
Posts: 29


Maybe try tweaking the timer to count up or down, or hook the timer up to a counter set to max one. That would turn off the MC.
If the MC is off and the emitter is inside of the Mc then the emitter should not be working because everything inside the MC gets turned off too.
Glad to help
2011-01-20 23:36:00

Author:
Bremnen
Posts: 1800


PURE GENIUS!

I got it to work with the assistance of your help There are so many different things I can apply it to now. You sir, are a great samaritan. Let me know when you finish some new levels or if you ever wanna play. Once again thanks tremendously for your help!
2011-01-21 00:40:00

Author:
Lostwind
Posts: 29


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.