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

Consistency in movers

Archive: 14 posts


So I'm trying to do some stuff in a top-down level, which as far as I can see requires me to have some things moving independently (as in, several pieces with different movers) but in concert. Basically, I have a frame in which I move a cursor around, and I want vertical and horizontal crossbars to follow the cursor and the frame correctly. So the vertical bar, for example, needs to follow the cursor's horizontal movement, but the frame's vertical movement, and vice versa for the horizontal bar. Simple, right? Just wire the signals used to move the frame and cursor into the respective movers and you're good to go, right?

Wrong, it turns out. I did just that, and experimented a bit. Doing that and then moving the cursor caused there to build up errors in the bars' movement - they would not precisely follow the cursor as they were supposed to. It seemed like they followed the frame well enough - but I didn't set up my test to check that very precisely.

Has anyone else fiddled with multiple movers using the same signals to move objects in concert with each other? Does anyone have a different idea for how I can achieve my idea?
2011-02-26 23:04:00

Author:
Unknown User


Instead of using movers, use followers that only allow vertical/horizontal movement.2011-02-26 23:07:00

Author:
Leafy101
Posts: 154


Instead of using movers, use followers that only allow vertical/horizontal movement.

Would two such followers interfere with one another, or could I set an object up with a horizontally restricted follower chasing the cursor and a vertically restricted follower chasing the frame?
2011-02-26 23:23:00

Author:
Unknown User


So, the horizontal bar goes from one border of the screen to the other, and the same goes for the vertical?2011-02-26 23:37:00

Author:
Devious_Oatmeal
Posts: 1799


So, the horizontal bar goes from one border of the screen to the other, and the same goes for the vertical?

Pretty much. Imagine you have a camera that can move around. The borders of that camera have a frame, rigged to prevent the cursor from moving outside it. Now I want a vertical bar that goes from top to bottom of the frame, and a horizontal bar that goes from left to right side, the two of which cross each other where the cursor is at all times. All of these elements are made from holo, BTW.

And yes, I do have a cunning plan with all this, if I can only get the bars working usefully.
2011-02-26 23:52:00

Author:
Unknown User


Well, assuming the camera never sees out the border. You could just glue the bars to the cursor; just extend them.2011-02-26 23:58:00

Author:
Devious_Oatmeal
Posts: 1799


On the tip of your cursor put a tag. Set the color and label it. Call it 'cursor' for example. Then on the exact middle of of the spot where the horizontal and vertical lines intersect, put microchip with a tag follower set to the same color and label. Make sure to set the speed and acceleration on the follower to max. Set it to allow horizontal and vertical movement and turn off the change layer setting.

This should do it for ya if i understood the original question. If not try posting a couple pics so I can get a better idea of what you're trying to achieve.
2011-02-27 00:35:00

Author:
Chicago51
Posts: 258


@ Chicago - What's the point in doing the follower and tag? Might as well as stick it straight to it.

Also, as it turns out, there is still lag when the follower's settings are maxed out. The lag is very small, but depending on the circumstances, it could be a problem.
2011-02-27 00:42:00

Author:
Devious_Oatmeal
Posts: 1799


I assumed that there was a reason to have them move separately if needed. Or at least the option to turn it off.2011-02-27 00:53:00

Author:
Chicago51
Posts: 258


If he wanted to turn it off, I guess he could just make the hologram bars turn off. But as for the separate it, I don't think if he'll do that. It is a cursor after all. But if he wanted it to separate, the follower works.2011-02-27 00:59:00

Author:
Devious_Oatmeal
Posts: 1799


If you are just trying to make a cursor that never leaves a box, there's another way.

Put a right, left, up, and down impact sensor on the cursor. Then make four pieces of holo on the edge of your "border". Place corresponding tags on each holo border.

Now when it touches the right wall disable the right mover.
2011-02-27 01:34:00

Author:
tdarb
Posts: 689


Lotta good suggestions, here. I think I do need to set up some sort of follower-based trick, here, since I need the crossbars to be able to stop following the cursor, and then return to it and keep following it. The lag from a fast follower would not be a problem, I think, as long as the end position is with the cursor.

Guess there's no choice but make the overlong bars. The bars have some functionality on them that means they're a little temp-intensive, so I'd rather not have them be too huge, but well, there it goes, right? Better use five bars of thermo and have it working than use three-four bars and have it broken.
2011-02-27 09:24:00

Author:
Unknown User


Tbh, it would be A WHOLE LOT better if we could see what you are talking about. I'm sure someone has come up with an idea similar to this idea already, and it's not like we plan on stealing it. After all, we're the one's giving you advice. (If that sounded insulting in anyway, I apologize)2011-02-27 09:31:00

Author:
Devious_Oatmeal
Posts: 1799


I certainly haven't seen anyone do what I plan to ultimately do with this. But I think I've gotten the help I need here, so thanks for that, all of you. I'll be experimenting some more now.

(And once I have it working, I'll make a tutorial of it and share with future generations, of course. )
2011-02-27 09:34:00

Author:
Unknown User


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.