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

Sound Sensor Switch

Archive: 3 posts


Hello! Umbral here with another tutorial. And this one is pretty simple: Sound Sensors! This is going to be a sensor, where if you drop a block, or activate a switch, it will turn on. And it CAN be inverted, same as any switch! But, it has to have an individual application to every peice of you're level(s). I'll explain in a bit. So let's get started!

Now, first we need to do is take out a 2 blocks. One will represent the SENSING object, one will represent the SIGNAL object (The object making the sound). Place a Micro on both, and then in the sensing, all you need is a Tag sensor set to GREEN > Sound, and a NOT gate. Wire the Tag sensor to the NOT gate, and invert the NOT gate. So the symbol on it looks like the Play button on a TV remote. This makes it off, unless it hears a noise, in other words, unless it senses GREEN > Sound.

Now make the mire of the NOT gate run to the inside of the other micro, creating a node. THen delete the node and get rid of the wire. So if you close the micro, you get an output, like a regular sensor. This is optional of course, but it provides ease of access.

Now on the other block's micro, place selector. And any kind of input to it, like a button or a grab sensor. Wire the 2nd output to the 1st input. This is basically telling the game "When this output turns off, turn that output on." Now make the default selected port at the 1st port. And wire the 3rd port to any sound you want to have, and the tag named GREEN > Sound. So when you press that button, it makes the sound and activated the tag. Letting the sensor know that sound was played.

You can tweak the radius, invertion, and other things on the sensor. Fun, huh? Alrighty, well I hope you enjoyed, don't forget to answer the poll to tell me if this helped you or not. And if you have any comments, post them here or message me. Alright, bye guys.
2012-11-17 16:09:00

Author:
Unknown User


all you need is a Tag sensor set to GREEN > Sound, and a NOT gate. Wire the Tag sensor to the NOT gate, and invert the NOT gate. So the symbol on it looks like the Play button on a TV remote. This makes it off, unless it hears a noise, in other words, unless it senses GREEN > Sound.

an inverted NOT gate is pointless, as it doesn't affect the signal running though it in any way. just wire directly from the sensor.
also the use of the selector in this tutorial is questionable, what exactly is it being used for?
you said "When this output turns off, turn that output on." - that is exactly what a NOT gate is for, yet i don't see how you would be needing it.

wiring a button/ grab sensor etc to a sound and tag on one object, then wire a tag sensor to whatever you want the sound to activate on the other object will do the trick. the rest of it just seems pointless.
if you want to sense when the sound is off you can simply invert the sensor (assuming the it's a continuous sound)
2012-11-18 04:45:00

Author:
evret
Posts: 612


Um yea, when I was making this, I was not really thinking about how you could just invert the tag sensor... And the selector was originally for something, such as another sound. But I changed it to 2 FROM 3, because I got a bit confused. The other sound would be something like a big mechanical door, moving and then slamming onto the ground to close, for example, if I didn't have the selector at 3 ports, it would play the slam sound when the level started. The 1st port would be empty so it didn't make a sound. Then it would preform as a 2 port selector form then on, due to there being no input to the 1st port. But like I said, I got a bit confused. So yup, I guess your logic would work the same. And it maybe would save a bit of thermo, although Idk how much 2 logic peices can save. But they both work, sure. Sorry about that. 2012-11-19 14:42:00

Author:
Unknown User


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.