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

How to make a sackbot.....

Archive: 2 posts


Hiya guys,
in the level I am making there are guards that try to kill you. These guards are set to walk in between two tags. When the tag senses the sackbot is nearby, it triggers a timer on the sackbot microchip. When the timer is filled, another behaviour is triggered which causes the sackbot to move to the next tag. This process will then repeat itself.
So, I have set it up so that the sackbot can only detect you when it is facing the player (who is controlling a sackbot via controlinator). The player sensor triggers a follow waypoint behaviour which makes the sackbot chase after the player.
NOW, I have run in to a bit of a problem with this logic. I want the sackbot guards to stop chasing you if you escape them (e.g. climbing on to a roof which is out of sight of the guards) and go back to their previous behaviour of walking between two tags.
I don't know if this will help but this is the more in depth explanation of the logic.
A selector has a tag sensor for each of its inputs.The outputs of the selector are attached to follow waypoint behaviours, the positive output for the behaviour that makes them walk to the tag on their right, and the negative output for the tag on their left. The selector outputs are also hooked up to player sensors (on microchips) tited to 180 degrees, so that the sackbot can only detect you if you are in front of it. The tag sensors which I mentioned above trigger a timer which, when full, activates the other follow waypoint behaviour and a separate timer. This other timer that is activated goes for the same length of time, resets the other timer once full and activates the waypoint behaviour I detailed before. This process repeats itself until the player is detected.

:star:Any help is appreciated!:star:
2011-07-26 22:59:00

Author:
lbp2goty
Posts: 104


Could you try changing the behaviour from follow waypoint (for following the player) to the 'follow' behavaviour and the change its awareness radius for following. to solve the switching back to gaurding, place a player sensor and match both radius's (of the behaviour and sensor) and invert the player sensor. then wire it to the logic that re-activates the 'guarding mode'. I currently dont know what your logic is for reseting to gaurd mode so i'll just leave it at that.2011-07-26 23:18:00

Author:
LBP2_Tutorialist
Posts: 225


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.