How to make a sackbot.....
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: