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

Lbp2 ai

Archive: 3 posts


What's the best way of creating a non-sackbot enemy that hunts the player but also moves around obstacles?

This is for a top-down grid-based shooter that I'm developing.
2012-04-15 19:25:00

Author:
Unknown User


I usually use tags to mark obstacles and set sensors on the bot connected to logic to tell it to move to one side or the other. The sensor will disable whatever logic was controlling its movements and turn on its avoidance logic, or it will simply add a signal into whatever mover is in effect so that the evasion is added into the regular movements, though this might cause complications when signals conflict. You can get fancy and use signal strengths to prioritize movements: if the obstacle is closer to the bot than the player, then the avoidance behavior will override its tracking behavior.2012-04-15 20:00:00

Author:
Sehven
Posts: 2188


The map is quite small, so I could make it go a set route if in a certain position which is then overided by 'attack logic' but I'm not sure how to put it into AND's, OR's and TAG's.2012-04-15 20:50: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.