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

Natural Direction Detection for Sackbots

Archive: 8 posts


If you've ever tried making a stealth level you've probably come across the problem of having sackbots that can't tell which direction they're facing, well I've found a solution to that. Instead of having to use timers and tags placed everywhere, this is the simplest way of doing it and with the least amount of flaws.

http://i6.lbp.me/img/ft/35659a6c5fde41301953dad0b6dbf35987ceb041.jpg
First bring out the Sackbot that you'll be using and place a tag on him.

http://i1.lbp.me/img/ft/561f3227d0e3efb94e59eefc96e45ff20e10b65e.jpg
Then take out a triangle piece of invisible hologram/sticker panel material and place a microchip on it.

http://i6.lbp.me/img/ft/0c685ea35ffb60563f2ce15ad94a436de565b0da.jpg
Place a follower and a look-at-rotator that both follow your sackbot, make sure their acceleration and speed are both set to maximum. The follower is just to simply have it follow the sackbot and the look-at-rotator copies the direction the sackbot is facing, also it is very important that the rotator is pointing in the same direction the triangle is.

http://i9.lbp.me/img/ft/629c8d0b016a745c3ee9105f1da29570d84af592.jpg
Now to help tell us what direction our sackbot is facing we'll have to use two angle sensors both facing in opposite directions (left & right) and set to 180 degrees.
And now when you try it out you can see that depending on what direction the sackbot is facing the angle sensors turn on.

This is just the basics so for those of you who are more skilled in logic should now know how to implement this into a stealth system.

Thanks for reading!
2012-06-18 23:11:00

Author:
CYBERSNAKE
Posts: 280


you can simply place a controllinator on the sackbot (defult settings should b fine), then wire the left/right output of the left analog stick to a splitter.
also to have it remember which way it was last moving you can wire both outputs of the splitter to a 2 port selector
2012-06-23 16:25:00

Author:
evret
Posts: 612


you can simply place a controllinator on the sackbot (defult settings should b fine), then wire the left/right output of the left analog stick to a splitter.
also to have it remember which way it was last moving you can wire both outputs of the splitter to a 2 port selector

Thanks a lot Evret!! Ruined another perfectly fine post!

Nah, jk. Anyway, I think you misunderstood what OP was trying to say. I'm not entirely sure if Evret's method would work on a NPC, and NPCs are what the OP's talking about (I think).
2012-06-24 06:20:00

Author:
Kaboosh99
Posts: 359


you can simply place a controllinator on the sackbot (defult settings should b fine), then wire the left/right output of the left analog stick to a splitter.
also to have it remember which way it was last moving you can wire both outputs of the splitter to a 2 port selector

This only works when the player is controlling the sackbot, my method is designed for sackbots that the player does not take control of.
2012-06-24 08:26:00

Author:
CYBERSNAKE
Posts: 280


I looked into it and it seems to work as evret said. I put a sackbot to patrol and wired the left stick output to direction spillter and then a two port selector. It does get the signal even when the bot is moving back and forth on its own.

This caught my attention because I actually made my own stealth logic, but because I didn't know any better I don't use either of these tricks. But now I know three different ways to do this. Yay.
2012-06-24 19:01:00

Author:
xxMATEOSxx
Posts: 1787


Thanks a lot Evret!! Ruined another perfectly fine post!

Nah, jk. Anyway, I think you misunderstood what OP was trying to say. I'm not entirely sure if Evret's method would work on a NPC, and NPCs are what the OP's talking about (I think).


This only works when the player is controlling the sackbot, my method is designed for sackbots that the player does not take control of.


I looked into it and it seems to work as evret said. I put a sackbot to patrol and wired the left stick output to direction spillter and then a two port selector. It does get the signal even when the bot is moving back and forth on its own.

This caught my attention because I actually made my own stealth logic, but because I didn't know any better I don't use either of these tricks. But now I know three different ways to do this. Yay.

yeah i knew you were talking about NPC's, if the controllinator is on an NPC and and not set to receive it will be activated by the NPC's actions
2012-06-25 10:39:00

Author:
evret
Posts: 612


Yet another method is using a speed sensor set to only register left-right speed, with maximum speed set to 0.1 (wired to a splitter/selector like Evret's controlinator example). The difference is that it also registers involuntary movement (like being dragged).2012-06-25 11:29:00

Author:
Rogar
Posts: 2284


I did this using 3 hologram blocks which follow the sackbot. One central connector block, and two sensor blocks to the left and right. With the follower logic rigged up in the right way you can make it so that the bot has no collision with the sensor blocks while stationary, but clips either block just enough while moving to trigger impact sensors (touching- yes, rigid connections - no). I also put a selector in the mix to hold the directional "memory".

Sorry to be vague but I did this a year ago and my memory is hazy at the best of times
2012-06-25 21:48:00

Author:
Ungreth
Posts: 2130


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.