Home    LittleBigPlanet 1 - PSP - Tearaway -Run Sackboy Run    LittleBigPlanet 1    [LBP1] Help! [Archive]
#1

Auto Randomizer?

Archive: 4 posts


I'm making a sweet christmas level where u have to help santa deliver the right colored presents to the right colored house ( comment if u want to be a beta tester).
There is a window on the sleigh that previews what you are gong to drop down the chimney ( like tetris). I need an auto randomizer that randomly selects a present to appear in the window... but it cant slelect the sanme present twice, and it has to select a present every time, so u can't make like mag switches that disapear on a wheel kind of thing.

Thanks for the help!!
....
2010-12-15 00:20:00

Author:
McSquizzy
Posts: 41


You can modify the LBPCentral Advanced Logic Pack randomizer to achieve what you want to achieve. You'll need to put the magnetic switches on pistons, then set up an another array of magnetic switches (I'll call them the piston switches) that retract the pistons when activated. When you spawn the randomizer, you would emit a magnetic key (I'll call it the piston key) next to the piston switches which would then retract the randomizer switch, pulling it out of the next rotation. That way you couldn't have 2 of the same gift in a row.

You'll have to adjust your logic so the randomizer will keep triggering until it gets a gift to drop, and to demit the piston key to allow a new piston key to be placed.

I posted this on LBW for you as well.
2010-12-15 17:46:00

Author:
RoharDragontamer
Posts: 397


I made exactly this at one point.

The idea is to allow the randomizer to "run" until it picks one output (present) that was not just picked. The best way that I worked out how to do this was to combine a randomizer with what is called a mutual exclusion switch (see incinerator22's logic level). Then, once a piece is successfully emitted in a new place, you can use AND logic to spit out whatever present you want.

It's pretty complicated, but I'm confident you can figure it out.

2010-12-15 18:30:00

Author:
comphermc
Posts: 5338


You can modify the LBPCentral Advanced Logic Pack randomizer to achieve what you want to achieve. You'll need to put the magnetic switches on pistons, then set up an another array of magnetic switches (I'll call them the piston switches) that retract the pistons when activated. When you spawn the randomizer, you would emit a magnetic key (I'll call it the piston key) next to the piston switches which would then retract the randomizer switch, pulling it out of the next rotation. That way you couldn't have 2 of the same gift in a row.

You'll have to adjust your logic so the randomizer will keep triggering until it gets a gift to drop, and to demit the piston key to allow a new piston key to be placed.

I posted this on LBW for you as well.

thank you very much, ive been waiting for someone to reply... it sounds super complicated in writing, but im sure its not... can u maybe post a pic? also, im not sure what lbw is, and the logic pack page isnt working for my web browser
thanks for your help though!
2010-12-16 00:19:00

Author:
McSquizzy
Posts: 41


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.