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

Up or are we going down?

Archive: 6 posts


Hi Guys,

Think this is the correct thread. How would I make an object do more than one thing? For example, I want an object to rise up from the floor, move to the left and then rotate 180 degrees and then descent again? Thanks guys, so much help has already been received,

Thanks in advance

Liam
2012-02-14 16:51:00

Author:
LittleBigSnooth
Posts: 454


You could use a selector that gets cycled through and for each port activates certain actions. It'd be practical to wire the selector ports to chips that each contain all stuff for a certain phase. Have a 5-gate selector, leave the first port untouched. Wire the second port to a chip; this first chip would have a basic mover to make it go up and maybe a timer fueled by a battery (also wire the battery to the timer's reset); wire the timer to gate 3 of the selector. (You can also, instead of the timer, use logic that detects the presence of a tag or collides with something)

Output #3 from the selector goes to a chip that contains similar logic as the first chip, but with a mover that goes left. It wires to input #4 of the selector.

Output #4 goes to a chip that contains a gyroscope turned upside down to rotate it 180 degrees. Wire the timer to input #5.

Output #5 goes to a chip that makes the object descent after which gate #1 (passive) or #2 (start over) gets activated. If the speed of the movers cause you trouble during the rotation phase, add a mover set to 0 speed and 100% deceleration on the same chip as the gyro.
2012-02-14 17:12:00

Author:
Antikris
Posts: 1340


You could place the movers and rotators on a sequencer.

If it helps the setting on movers is in large grid squares per second and the setting on rotators is in degrees per second. If you know exactly how far the object needs to move you can, with some simple maths, position it with a high degree of accuracy.
2012-02-14 18:57:00

Author:
Ayneh
Posts: 2454


Great advice. Thanks guys. Much appreciated.

Liam
2012-02-14 22:51:00

Author:
LittleBigSnooth
Posts: 454


Just to be clear: there is a large difference bwteen Ayneh's approach and mine. Ayneh's is based on a timed cycle; the logic walks through a pattern over time. Mine is event based; logic goes to the next step (or any step) based on where the object is. You'll have to decide which approach fits your situation.2012-02-15 11:49:00

Author:
Antikris
Posts: 1340


Yeah, I noticed when I was fiddled about with it last night. Okay, thanks anyway. Both your solutions work wonders either way Thanks guys2012-02-15 12:03:00

Author:
LittleBigSnooth
Posts: 454


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.