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

Countdown Timer and Piston

Archive: 5 posts


Okay, so here is the setup I have thus far:

Horizontal piston pushing a pipe back and forth set to On/Off. It moves from one side to the other in 0.5 seconds.
Sequencer has a timer and an alert sound effect (that plays before any movement) inside it.
Timer set to countdown so that the piston moves until the timer reaches 0. It is also set to 0.5 seconds.
Red button is attached to the sequencer which plays the alert first and then starts the timer.

Whenever I press the button, the pipe that's being pushed is ever so slightly off which means that every time the button is pushed, the pipe gets more and more off track to where it's so wrong that it'll mess up the race.

Since I have the piston and the timer timed to 0.5 seconds, shouldn't it be working? Without the timer, the piston goes exactly where it needs to go. Is there a better way to do this?
2012-12-04 23:14:00

Author:
Remy
Posts: 252


You wouldn't happen to have a sync or pause set to anything but 0 for any of the tech would you?2012-12-04 23:29:00

Author:
amazingflyingpoo
Posts: 1515


There were no pauses, and I didn't even mess with sync.2012-12-05 00:16:00

Author:
Remy
Posts: 252


Synching up like this is going to be tricky. Assuming it's the same as in LBP2, logic is calculated per frame, so there's some manner of rounding up/down going on. Also, some logic will take a frame to send on the signal (by design). So it's very likely for things to run out of sync if they're being turned on and off a lot.

Step one is to change the piston's input action to Forward/Backward. This will give you better control over where in the cycle your piston will be. If I understand you correctly, a toggle in stead of the timer should fix the rest.
2012-12-05 09:47:00

Author:
Rogar
Posts: 2284


Okay, so using a toggle will cause the piston to push forward while it is "on" and only pull back while it is "off"? If so, that actually makes more sense than what I'm doing because I think part of the problem with the timer may be those extra frames throwing it out of whack. I'll try your suggestion!2012-12-05 14:40:00

Author:
Remy
Posts: 252


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.