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

Need help making logic for "Secrets" count

Archive: 5 posts


In my story there are 10 things to pick up. 5 in each level. When the player finds all 10 a bonus level is unlocked.

I don't know where to begin with the logic. I have put a microchip on my object with a grab sensor connected to it, but that's as far as I get till I get completely lost. What components would I need and how would it be wired?
2014-06-14 06:05:00

Author:
Kender42
Posts: 38


This is what I did in my Vita level that has a "secrets" found board. Each object has a microchip. On that chip I have an impact sensor wired to a score giver and a sound and a destroyer. When the player walks through the object, in my case a sticker panel object, the object is destroyed, a sound plays and a score is given. You can do the same thing with the grab sensor though. Also. On a separate chip off to the side, NOT ON THE OBJECT, the impact sensor on the first chip is wired to a Toggle switch which is wired to a tag that is appropriately labeled, like "secret 1" etc.
What happens is the impact sensor changes the toggle to the ON state then it turns on the tag.

So at the end of the level I have a chip with all these Tag Sensors on it. One for each secret. The tag sensors are set to maximum detection range infinite, so that it senses tags in the whole level. When the tag is activated, turned on, the tag sensor reads this and is turned on. From here I have another chip with an AND Gate on it. All the tag sensors are wired to the And Gate and the And Gate is wired to a movie camera and dialog chain I have. So when ALL the secrets are activated, the And Gate turns on the move camera and dialog.
You could have the And gate wired to anything you want. When all secrets are found, it will activate whatever you have it wired to. A level link for instance.

Anyway, that's how I did it. How to carry the information over to another level, I don't know. If you have the second level set as a sub-level, then I think the info does carry over. Score, items collected etc. I'm not totally sure on that though.
2014-06-14 15:04:00

Author:
biorogue
Posts: 8424


Thank you for that, Bio. It gives me a VERY good starting point. If anyone knows how to use the memorizer to carry that into the other levels, please let me know.2014-06-14 22:49:00

Author:
Kender42
Posts: 38


Thank you for that, Bio. It gives me a VERY good starting point. If anyone knows how to use the memorizer to carry that into the other levels, please let me know.

If you want to keep the count of secrets found, plug each into a different memorizer port and then plug each into one big or gate. The or gate should plug into the memorizer 'save' input. Then, whenever you place a same labeled memorize in a different level, it will know which secrets were found.

If you just want to remember that all were found, just plug the big and gate that each secret goes into into one memorize port and the save port.
2014-06-15 17:47:00

Author:
Tynz21
Posts: 544


Thank you Tynz. That worked much better.2014-06-24 07:07:00

Author:
Kender42
Posts: 38


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.