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

One shot piston with speed scale?

Archive: 6 posts


I have a platform that I want to move up and down with a piston. That's easy enough. I want it to stay down until a switch is flipped, then it moves up. That's easy enough too.

The problem is that I want the player to be able to adjust the speed of the piston, so I ran a timer and button through an AND gate to the piston set to speed scale.

That scaled the speed well enough, but now the piston is either on or off, and keeps moving instead of extending with the button press, and retracting on release.

Is there a way to get the best of both worlds?
2011-02-09 21:28:00

Author:
tdarb
Posts: 689


You might be able to do this with a piston and a mover. Basically the piston would then just become a limiter, you would have to set the strength of the piston low enough that the mover could push and pull it and just wire up the piston so it is always off. The movers are really easy to set to strength/speed.

A pity that the piston doesn't support analogue directional or positional input. It would make them way more useful in LBP2.
2011-02-10 00:30:00

Author:
Osprey71
Posts: 93


Basically the piston would then just become a limiter, you would have to set the strength of the piston low enough that the mover could push and pull it and just wire up the piston so it is always off.

Or just set the piston strength to 0.
2011-02-10 10:20:00

Author:
Aya042
Posts: 2870


Well, i am trying to make a launcher. I may be able to use a follow mover to do it, but standard movers don't want to work.

Pistons travel a certain distance in a given time. That makes them ideal for this, but I can't seem to find a way to make them directional, and have their speed scaled.

Movers generally accelerate to a given speed. They don't have the immediacy that a piston can. That can be tweaked, but the moment you change the weight of any material on it, they start going off again. ugggg
2011-02-10 11:05:00

Author:
tdarb
Posts: 689


Movers generally accelerate to a given speed. They don't have the immediacy that a piston can.

A mover with acceleration set to 100% should immediately accelerate to the speed you set in Max Speed as soon as they're activated - can't really get more immediate than that.
2011-02-10 11:33:00

Author:
Aya042
Posts: 2870


i'll have to try it again then. I was having issues with that earlier.2011-02-10 11:38:00

Author:
tdarb
Posts: 689


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.