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

Speed gauge

Archive: 5 posts


Hey guys I was wondering if there is a way to make some sort of sensor to detect if a Player controlled sackboy is running or walking towards another sackbot I can't figure it out and I'd really appreceate help.2011-01-24 01:50:00

Author:
inferedmonkey
Posts: 76


Like having an LCD display telling the distance from the sackbot to the target, or the speed at which the sackbot is traveling? or am i totally off?2011-01-24 02:24:00

Author:
Unknown User


Um your a little off I mean I need to make it so an ai sackbot will run off if some one runs up to them but continue a behavior like patrol if someone just walk up to them slowly.2011-01-24 02:48:00

Author:
inferedmonkey
Posts: 76


One of the sensors, probably Player, has an output setting for how close the target is. I assume this means that if you hook it up to a mover or rotator, you'd have a basic distance gauge.

Now, assuming that works, perhaps you could work out some kind of counterweighting on the gauge so it won't be able to increase unless the player is moving quickly.

---

Just had a thought - two Player sensors, one hooked to a battery, and then AND the battery and the other sensor together. Set the sensor with the battery to a large range, and the sensor without to something small, with the battery being your "speed limit" setting.

If the player is moving slowly, he'll activate the first sensor, but the battery will run out before he reaches the other one, so the AND gate will stay off. If he runs fast enough to trip the second before the battery finishes, the AND will trip and set off whatever behavior you want.
2011-01-24 16:01:00

Author:
Unknown User


Put a Sensor Key inside the Sackbot player's circuit boards and put the Key Sensor inside the other sackbots circuit boards. Then have the Key Sensor trigger whatever you want when the player sackbot goes within range of the other sackbot's key ranges.2011-01-24 16:47:00

Author:
Fumo161
Posts: 210


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.