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

Vending Machine?

Archive: 5 posts


I am creating a vending machine for my level, though I am not sure what to use for logic. At the moment, I have a player sensor and a score sensor attatched to an AND gate, then attatched to a dangerous chip that dissolves the chute so that when the player is close with the set amount of points, he makes the prize bubble drop. the problem is, i want it to make the sound like in the story levels where when you have the right amount of points, it plays a sound, and when you dont have enough it doesnt.

Any ideas on how to do this?
2011-03-05 18:42:00

Author:
Mycougo
Posts: 8


Try this. You need two and gates. One with player sensor AND score sensor that outputs to the sound where you have enough points. And the other with player sensor AND score sensor to a NOT gate, which outputs the other sound that you don't have enough points.2011-03-05 19:01:00

Author:
riverad08
Posts: 104


i put the logic as you said but im getting both sounds to play?
i set the score sensor to drop the prize bubbles when the player has 100 points.

i want to make it so if he has less than 100, it wouldnt drop. so how would i set that on the score sensor? place it on 90?

Edit:

I placed the logic like this:

Player sensor (1st input) ---> And gate ----> Danger chip that dissolves chute to drop prize bubble
Score sensor (100 points) ---> (2nd input)

this makes the chute dissolve when theres a player nearby when they have 100 pts.

for the sounds i did as you said and put:

Player sensor (1st input) ---> AND Gate -----> Victory Sound
Score Sensor (100pts.) (2nd intput) ----> (connected to above and gate)

then the other gate for the failure sound:

Player sensor (1st input) ---> AND Gate (because it needs to inputs and they must both be active) -----> NOT Gate -----> Failure Sound
Score Sensor (0pts.) (2nd intput) ----> (connected to above and gate)

And yet with this, all it does is when you start the level it makes the failure noise
and the victory sound doesnt occur when you drop the bubble either

Please help ='[
Someone can come join my game if they like my psn is
Mycougo
2011-03-05 19:11:00

Author:
Mycougo
Posts: 8


Player sensor (1st input) ---> AND Gate (because it needs to inputs and they must both be active) -----> NOT Gate -----> Failure Sound
Score Sensor (0pts.) (2nd intput) ----> (connected to above and gate)
Mycougo

This is wrong. You want the output of the score sensor to the input of the not gate and the output of the not gate to the input of the and gate.
2011-03-05 19:49:00

Author:
riverad08
Posts: 104


Sumimasen
I see what I have done wrong now thank you very much!
2011-03-05 19:53:00

Author:
Mycougo
Posts: 8


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.