Home    LittleBigPlanet 2 - 3 - Vita - Karting    LittleBigPlanet 2    [LBP2] Everything Else LittleBigPlanet 2
#1

Anyone know how to make a sackbot follow or flee from another sackbot?

Archive: 6 posts


I'm trying to get some cute little sackbots to run away from a sackbot which is being controlled by a player. Unfortunately the sackbot ai only seems built to respond to players -- is there any way to get it to work with tags? Seems like an oversight, or it's easy to do and I'm blind?2010-12-14 04:37:00

Author:
Alic
Posts: 81


Waypoint behavior mode is really a follow tag mode 2010-12-14 04:46:00

Author:
Shadowriver
Posts: 3991


lol, nice. You just saved me a night of work 2010-12-14 05:24:00

Author:
Alic
Posts: 81


but wait, that only works for follow... There's no flee instead option like there is on the follower movers...

Hopefully there's something else I'm missing
2010-12-14 05:27:00

Author:
Alic
Posts: 81


One work around is to place two 180? tag sensors, 2 splitters, a controllinator, and OR gate on your sackbot. One tag sensor pointing to the left and another pointing to the right. Connect the left pointing sensor to a splitter and attach the positive output of the splitter to the OR gate. Connect the right pointing sensor to the other splitter and attach the negative output of that splitter to the second input of the OR gate. Then connect the OR gate output to the left input of the left analog stick. I usually set my controllinators to non-transmitter mode when I'm controlling sackbots through logic.

When a tag approaches from the right the sackbot will run left, when approached from the left, sackbot will run right. If approached from both sides, sackbot will run right as the positive signal will take precedence through the OR gate.
2010-12-14 14:37:00

Author:
RoharDragontamer
Posts: 397


Thanks, Rohar!

I'm going to try it that way. I actually gave up last night and switched to just making them move randomly (randomizer plugged in to both inputs of a combiner, plugged in to the l/r axis of the left stick on controllinator.

One problem I've run into is, how do you make them move faster or slower? Setting their behavior to 30% walk speed barely makes them move slower -- they're still really fast little buggers. Is there any way to decrease the strength of the input going into the left stick?

Thanks for that really detailed post, and thanks for all your help guys!
2010-12-14 19:50:00

Author:
Alic
Posts: 81


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.