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

Help with positioning Sackbots

Archive: 7 posts


The level that I'm working on requires that some sackbots move to a few specific locations, and they need to be able to move away from these locations and then return to the exact point they started.

I figured that when I wanted the bot to return to his position, I could just turn on a Sackbot behavior thing set to "Follow Waypoint," and have a tag set exactly at the location. That did not turn out to be the case. The bot walks over to the tag, but it doesn't try to line up with it perfectly. It gets sort of kind of close to it and then figures, "good enough!" and stops moving. This probably sounds really nitpicky but it looks sloppy when the bots don't go exactly where I tell them to.

I can think of a few things that might work, but before I dig too deep I figured I'd post a thread here and see if someone had a relatively simple fix, hopefully only using a couple pieces of logic.

The best method I can think of is that I encase the area in holo, and then cut tiny holes in the holo at the locations. When they're right of their assigned position, have them walk left, and when they're left of the position, have them walk right, and stop when they're no longer in contact with the holo. I'm not huge on that idea just because I've done similar things for other problems, and at the rate I'm going right now, this area of the level is going to be buried in layer after layer of holo, and that's gonna get confusing fast.
2011-07-08 20:04:00

Author:
Speed Racer
Posts: 156


You could use a follower with a small range to get the bot in the right spot2011-07-08 20:08:00

Author:
Zero10100
Posts: 385


Could you elaborate a little? Shrinking the range seems to not really help and if I make it too small obviously the tag falls outside the range of the folllower and/or sackbot behavior chip and nothing happens.2011-07-08 20:45:00

Author:
Speed Racer
Posts: 156


The way I see it with the follower idea above is that its not the sackbots follow feature but a seperate follower on its circuit board... if you set that ones minimum distance to 0 then it will line up exactly with the tag... the downside is it might look like the bot is being dragged to the point... that is potentially a problem depending on if the player witnesses the transaction2011-07-08 20:51:00

Author:
ForgottenEnigma
Posts: 1414


yeah, I tried that but it worked exactly the same as the sackbot behavior chip.

The solution I've got right now is I have a circuit that turns on whenever I want the sackbot to return to the position. It has two tag sensors, both with a range of 180 degrees. They're set up so that when the tag is left of the bot one turns on, and when it's right of the bot the other one turns on. They're wired up to a controlinator so that he walks left when the tag is left and right when the tag is right. When either mag switch turns off, it fills up a one-count counter that shuts the microchip off. Whenever I want the bot to go back to its position, the counter is reset. I'm still testing it but I think it works!
2011-07-08 21:17:00

Author:
Speed Racer
Posts: 156


The easiest way would be to record the actions as a behaviour, then simply choose the loop absolute setting in the behaviour chip. That way the sack-bot acts out the behaviour and returns to the start point to repeat the action. Then all you need is some way of turning off the chip when he gets there.
If you choose loop relative instead of loop absolute, then the sack-bot does the action you recorded, then repeats it from where he finished, instead of returning to the original start point.
2011-07-09 01:28:00

Author:
Frogmeister
Posts: 236


yeah that's not a bad idea either.2011-07-09 02:16:00

Author:
Speed Racer
Posts: 156


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.