Home LittleBigPlanet 2 - 3 - Vita - Karting LittleBigPlanet 2 [LBP2] Help!
#1
Elegant solution for door opening and closing sound effects
Archive: 5 posts
Anyone have an elegant solution for this? I have a cage with a gate which can open and close activated with a directional piston attached to a two way lever. I use the same sound effect for it opening and closing. The way I have it set up for sound effects is this... I have the two way lever attached to a timer, set to count down for the relevant amount of time (in this case 3 seconds), which is then attached to the sound effect speaker. For closing the gate, I have just copied this setup and added a not gate at the start. It's bothering me because it seems rather inelegant and inefficient. Anyone have a better way to do this, using just one sound effect speaker? I tried using an or gate leading to the speaker and a not gate before one of the inputs but this doesn't work. | 2011-02-20 03:29:00 Author: chillum007 Posts: 228 |
Dang, this is going to bother me now. How about... A tag + tag sensor + sfx? The tag sensor is activated at the half way point on your piston? (you could change the range depending on time it takes.) | 2011-02-20 04:10:00 Author: midnight_heist Posts: 2513 |
yeah i think that's what i used in lbp1, but was hoping for a better solution using lbp2 logic. I guess my solution works well enough, but it just bothers me as it seems there must be a better solution... | 2011-02-20 05:52:00 Author: chillum007 Posts: 228 |
It's no more elegant, but have you considered using more than one sound effect? You can get some really nice effects doing that. We know it takes three seconds to close, so you could have one sound set as the activation sound. that starts when it is triggered, the trigger also flips a toggle that activates the motor sound. You have a three second timer counting down that activates the stop sound, and flips the toggle to deactivate the motor sound. To make it work off the switch, run your switch through a direction splitter. This will split the signal into two positive signals. Put that into an OR gate so that no matter which one is active, it registers a positive. Now, run that into an AND gate. Run the toggle that triggers the motor sound through a NOT gate, and into the other side of the AND. That AND is your trigger for the first sound, toggle, and timer. This makes it so that the sound only triggers if it is not currently running. Put this on a microchip, and you have a nice, reusable, door sound chip. | 2011-02-20 06:13:00 Author: tdarb Posts: 689 |
Probably the smallest way is to have your inputs each hooked into a pulser, your pulsers hooked into an OR, and the OR hooked to a sound object. Pulser being a counter set to max count one with its output hooked to its own reset. | 2011-02-20 09:11:00 Author: Loius Posts: 342 |
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.
Die Nutzung dieser Webseite erfolgt ohne Speicherung personenbezogener Daten. Es werden keinerlei Cookies, Logs, 3rd-Party-Plugins etc. verwendet.